@Override
  public Optional<Long> getBlockNumber() {
    return blockNumber;
  }
Locks the layer so no new changes can be added;
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/trie/pathbased/common/trielog/TrieLogLayer.java