public static BlockHeaderFunctions forOnchainBlock(final BftExtraDataCodec bftExtraDataCodec) {
    return new BftBlockHeaderFunctions(
        h -> new BftBlockHashing(bftExtraDataCodec).calculateHashOfBftBlockOnchain(h),
        bftExtraDataCodec);
  }
Instantiate Block Header Functions for onchain block.

@param bftExtraDataCodec the bft extra data codec
@return the block header functions
consensus/common/src/main/java/org/hyperledger/besu/consensus/common/bft/BftBlockHeaderFunctions.java