Class BlockOverrides.Builder
java.lang.Object
org.hyperledger.besu.plugin.data.BlockOverrides.Builder
- Enclosing class:
BlockOverrides
Builder for BlockOverrides.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbaseFeePerGas(org.hyperledger.besu.datatypes.Wei baseFeePerGas) Sets the base fee per gas.blobBaseFee(org.hyperledger.besu.datatypes.Wei blobBaseFee) Sets the blob base fee.blockHash(org.hyperledger.besu.datatypes.Hash blockHash) Sets the block hash.blockHashLookup(Function<Long, org.hyperledger.besu.datatypes.Hash> blockHashLookup) Sets the block hash lookup.blockNumber(Long blockNumber) Sets the block number.build()Builds a new BlockOverrides instance.difficulty(BigInteger difficulty) Sets the difficulty.extraData(org.apache.tuweni.bytes.Bytes extraData) Sets the extra data.feeRecipient(org.hyperledger.besu.datatypes.Address feeRecipient) Sets the fee recipient.Sets the gas limit.mixHashOrPrevRandao(org.apache.tuweni.bytes.Bytes32 mixHashOrPrevRandao) Sets the mix hashparentBeaconBlockRoot(org.apache.tuweni.bytes.Bytes32 parentBeaconBlockRoot) Sets the parent beacon block root.stateRoot(org.hyperledger.besu.datatypes.Hash stateRoot) Sets the state root.Sets the timestamp.
-
Constructor Details
-
Builder
public Builder()Constructs a new Builder instance.
-
-
Method Details
-
timestamp
Sets the timestamp.- Parameters:
timestamp- the timestamp to set- Returns:
- the builder instance
-
blockNumber
Sets the block number.- Parameters:
blockNumber- the block number to set- Returns:
- the builder instance
-
blockHash
Sets the block hash.- Parameters:
blockHash- the block hash to set- Returns:
- the builder instance
-
gasLimit
Sets the gas limit.- Parameters:
gasLimit- the gas limit to set- Returns:
- the builder instance
-
feeRecipient
Sets the fee recipient.- Parameters:
feeRecipient- the fee recipient to set- Returns:
- the builder instance
-
baseFeePerGas
Sets the base fee per gas.- Parameters:
baseFeePerGas- the base fee per gas to set- Returns:
- the builder instance
-
blobBaseFee
Sets the blob base fee.- Parameters:
blobBaseFee- the blob base fee to set- Returns:
- the builder instance
-
stateRoot
Sets the state root.- Parameters:
stateRoot- the state root to set- Returns:
- the builder instance
-
difficulty
Sets the difficulty.- Parameters:
difficulty- the difficulty to set- Returns:
- the builder instance
-
extraData
Sets the extra data.- Parameters:
extraData- the extra data to set- Returns:
- the builder instance
-
mixHashOrPrevRandao
public BlockOverrides.Builder mixHashOrPrevRandao(org.apache.tuweni.bytes.Bytes32 mixHashOrPrevRandao) Sets the mix hash- Parameters:
mixHashOrPrevRandao- the mix hash- Returns:
- the builder instance
-
blockHashLookup
public BlockOverrides.Builder blockHashLookup(Function<Long, org.hyperledger.besu.datatypes.Hash> blockHashLookup) Sets the block hash lookup.- Parameters:
blockHashLookup- the block hash lookup to set- Returns:
- the builder instance
-
parentBeaconBlockRoot
public BlockOverrides.Builder parentBeaconBlockRoot(org.apache.tuweni.bytes.Bytes32 parentBeaconBlockRoot) Sets the parent beacon block root.- Parameters:
parentBeaconBlockRoot- the parent beacon block root to set- Returns:
- the builder instance
-
build
Builds a new BlockOverrides instance.- Returns:
- the new BlockOverrides instance
-