public ForkSpec<C> getFork(final long blockNumber) {
    for (final ForkSpec<C> f : forks) {
      if (blockNumber >= f.getBlock()) {
        return f;
      }
    }

    return forks.first();
  }
Gets fork.

@param blockNumber the block number
@return the fork
consensus/common/src/main/java/org/hyperledger/besu/consensus/common/ForksSchedule.java