@Override
  public PostMergeContext setTerminalTotalDifficulty(final Difficulty newTerminalTotalDifficulty) {
    if (newTerminalTotalDifficulty == null) {
      throw new IllegalStateException("cannot set null terminal total difficulty");
    }
    terminalTotalDifficulty.set(newTerminalTotalDifficulty);
    return this;
  }
Instantiates a new Post merge context.

@param difficulty the difficulty
consensus/merge/src/main/java/org/hyperledger/besu/consensus/merge/PostMergeContext.java