Class BlockOverrides
java.lang.Object
org.hyperledger.besu.plugin.data.BlockOverrides
BlockOverrides represents the block overrides for a block.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBlockOverrides(Optional<org.hyperledger.besu.datatypes.parameters.UnsignedLongParameter> timestamp, Optional<org.hyperledger.besu.datatypes.parameters.UnsignedLongParameter> blockNumber, Optional<org.hyperledger.besu.datatypes.Hash> blockHash, Optional<org.hyperledger.besu.datatypes.parameters.UnsignedLongParameter> gasLimit, Optional<org.hyperledger.besu.datatypes.Address> feeRecipient, Optional<org.hyperledger.besu.datatypes.Wei> baseFeePerGas, Optional<org.hyperledger.besu.datatypes.Wei> blobBaseFee, Optional<org.hyperledger.besu.datatypes.Hash> stateRoot, Optional<BigInteger> difficulty, Optional<org.apache.tuweni.bytes.Bytes> extraData, Optional<String> mixHashOrPrevRandao, Optional<String> parentBeaconBlockRoot) Constructs a new BlockOverrides instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockOverrides.Builderbuilder()Creates a new Builder instance.Optional<org.hyperledger.besu.datatypes.Wei> Gets the base fee per gas.Optional<org.hyperledger.besu.datatypes.Wei> Gets the blob base fee.Optional<org.hyperledger.besu.datatypes.Hash> Gets the block hash.Gets the block hash lookup.Gets the block number.Gets the difficulty.Optional<org.apache.tuweni.bytes.Bytes> Gets the extra data.Optional<org.hyperledger.besu.datatypes.Address> Gets the fee recipient.Gets the gas limit.Optional<org.apache.tuweni.bytes.Bytes32> Gets the mix hash or previous Randao.Optional<org.apache.tuweni.bytes.Bytes32> Gets the parent beacon block root.Optional<org.hyperledger.besu.datatypes.Hash> Gets the state root.Gets the timestamp.voidsetBlockNumber(Long blockNumber) Sets the block number.voidsetTimestamp(Long timestamp) Sets the timestamp.
-
Constructor Details
-
BlockOverrides
public BlockOverrides(Optional<org.hyperledger.besu.datatypes.parameters.UnsignedLongParameter> timestamp, Optional<org.hyperledger.besu.datatypes.parameters.UnsignedLongParameter> blockNumber, Optional<org.hyperledger.besu.datatypes.Hash> blockHash, Optional<org.hyperledger.besu.datatypes.parameters.UnsignedLongParameter> gasLimit, Optional<org.hyperledger.besu.datatypes.Address> feeRecipient, Optional<org.hyperledger.besu.datatypes.Wei> baseFeePerGas, Optional<org.hyperledger.besu.datatypes.Wei> blobBaseFee, Optional<org.hyperledger.besu.datatypes.Hash> stateRoot, Optional<BigInteger> difficulty, Optional<org.apache.tuweni.bytes.Bytes> extraData, Optional<String> mixHashOrPrevRandao, Optional<String> parentBeaconBlockRoot) Constructs a new BlockOverrides instance.- Parameters:
timestamp- the optional timestampblockNumber- the optional block numberblockHash- the optional block hashgasLimit- the optional gas limitfeeRecipient- the optional fee recipientbaseFeePerGas- the optional base fee per gasblobBaseFee- the optional blob base feestateRoot- the optional state rootdifficulty- the optional difficultyextraData- the optional extra datamixHashOrPrevRandao- the optional mix hash or previous RandaoparentBeaconBlockRoot- the optional parent beacon block root
-
-
Method Details
-
getBlockNumber
-
getBlockHash
Gets the block hash.- Returns:
- the optional block hash
-
getTimestamp
-
setTimestamp
Sets the timestamp.- Parameters:
timestamp- the timestamp to set
-
setBlockNumber
Sets the block number.- Parameters:
blockNumber- the block number to set
-
getGasLimit
-
getFeeRecipient
Gets the fee recipient.- Returns:
- the optional fee recipient
-
getBaseFeePerGas
Gets the base fee per gas.- Returns:
- the optional base fee per gas
-
getBlobBaseFee
Gets the blob base fee.- Returns:
- the optional blob base fee
-
getStateRoot
Gets the state root.- Returns:
- the optional state root
-
getDifficulty
-
getExtraData
Gets the extra data.- Returns:
- the optional extra data
-
getMixHashOrPrevRandao
Gets the mix hash or previous Randao.- Returns:
- the optional mix hash or previous Randao
-
getBlockHashLookup
-
getParentBeaconBlockRoot
Gets the parent beacon block root.- Returns:
- the optional parent beacon block root
-
builder
Creates a new Builder instance.- Returns:
- a new Builder
-