package
5.6.3-darwinv2-rc0+incompatible
Repository: https://github.com/scroll-tech/go-ethereum.git
Documentation: pkg.go.dev
# Functions
ApplyCurieHardFork modifies the state database according to the Curie hard-fork rules, updating the bytecode and storage of the L1GasPriceOracle contract.
ApplyDAOHardFork modifies the state database according to the DAO hard-fork rules, transferring all balances of a set of DAO accounts to a single refund contract.
CalcBaseFee calculates the basefee of the header.
CalcBlobFee calculates the blobfee from the header's excess blob gas field.
CalcExcessBlobGas calculates the excess blob gas after applying the set of blobs on top of the excess blob gas.
VerifyDAOHeaderExtraData validates the extra-data field of a block header to ensure it conforms to DAO hard-fork rules.
VerifyEip1559Header verifies some header attributes which were changed in EIP-1559, - gas limit check - basefee check.
VerifyForkHashes verifies that blocks conforming to network hard-forks do have the correct hashes, to avoid clients going off on different chains.
VerifyGaslimit verifies the header gas limit according increase/decrease in relation to the parent gas limit.
# Constants
Protocol-enforced maximum L2 base fee.
# Variables
ErrBadNoDAOExtra is returned if a header does support the DAO fork on a no- fork client.
ErrBadProDAOExtra is returned if a header doesn't support the DAO fork on a pro-fork client.