package
3.0.0-alpha5+incompatible
Repository: https://github.com/erigontech/erigon.git
Documentation: pkg.go.dev

# Packages

Package asm provides support for dealing with EVM assembly instructions (e.g., disassembling them).
Package forkid implements EIP-2124 (https://eips.ethereum.org/EIPS/eip-2124).
No description provided by the author
No description provided by the author
Package state provides a caching layer atop the Ethereum state trie.
No description provided by the author
No description provided by the author
No description provided by the author
Package types contains data types related to Ethereum consensus.
Package vm implements the Ethereum Virtual Machine.

# Functions

AmoyGenesisBlock returns the Amoy network genesis block.
ApplyMessage computes the new state by applying the given message against the old state within the environment.
ApplyTransaction attempts to apply a transaction to the given state database and uses the input parameters for its environment.
No description provided by the author
No description provided by the author
BorMainnetGenesisBlock returns the Bor Mainnet network genesis block.
CalcGasLimit computes the gas limit of the next block after parent.
No description provided by the author
CanTransfer checks whether there are enough funds in the address' account to make a transfer.
No description provided by the author
No description provided by the author
CommitGenesisBlock writes or updates the genesis block in db.
No description provided by the author
DeveloperGenesisBlock returns the 'geth --dev' genesis block.
ExecuteBlockEphemerally runs a block from provided stateReader and writes the result to the provided stateWriter.
No description provided by the author
GenerateChain creates a chain of n blocks.
No description provided by the author
GenesisBlockForTesting creates and writes a block in which addr has the given wei balance.
ToBlock creates the genesis block and writes state of a genesis specification to the given database (or discards it if nil).
No description provided by the author
GetHashFn returns a GetHashFunc which retrieves header hashes by number.
No description provided by the author
HoleskyGenesisBlock returns the Holesky main net genesis block.
No description provided by the author
IntrinsicGas computes the 'intrinsic gas' for a message with the given data.
MainnetGenesisBlock returns the Ethereum main net genesis block.
No description provided by the author
No description provided by the author
NewEVMBlockContext creates a new context for use in the EVM.
NewEVMTxContext creates a new transaction context for a single transaction.
NewStateTransition initialises and returns a new state transition object.
NewTxSenderCacher creates a new transaction sender background cacher and starts as many processing goroutines as allowed by the GOMAXPROCS on construction.
SepoliaGenesisBlock returns the Sepolia network genesis block.
No description provided by the author
No description provided by the author
SysCreate is a special (system) contract creation methods for genesis constructors.
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

See gas_limit in https://github.com/gnosischain/specs/blob/master/execution/withdrawals.md.
No description provided by the author

# Variables

BadHashes represent a set of manually tracked bad hashes (usually hard forks).
No description provided by the author
DevnetSignKey is defined like this to allow the devnet process to pre-allocate keys for nodes and then pass the address via --miner.etherbase - the function will be called to retieve the mining key.
Pre-calculated version of: DevnetSignPrivateKey = crypto.HexToECDSA(sha256.Sum256([]byte("erigon devnet key"))) DevnetEtherbase=crypto.PubkeyToAddress(DevnetSignPrivateKey.PublicKey).
ErrBlacklistedHash is returned if a block to import is on the blacklist.
ErrBlobGasLimitReached is returned by the gas pool if the amount of blob gas required by a transaction is higher than what's left in the block.
ErrFeeCapTooLow is returned if the transaction fee cap is less than the the base fee of the block.
ErrFeeCapVeryHigh is a sanity error to avoid extremely big numbers specified in the fee cap field.
ErrGasLimitReached is returned by the gas pool if the amount of gas required by a transaction is higher than what's left in the block.
ErrGasUintOverflow is returned when calculating gas usage.
ErrInsufficientFunds is returned if the total cost of executing a transaction is higher than the balance of the user's account.
ErrInternalFailure is returned when an unexpected internal error condition prevents execution.
ErrIntrinsicGas is returned if the transaction is specified to use less gas than required to start the invocation.
ErrKnownBlock is returned when a block to import is already known locally.
ErrMaxFeePerBlobGas is returned if the transaction specified a max_fee_per_blob_gas that is below the current blob gas price.
ErrMaxInitCodeSizeExceeded is returned if creation transaction provides the init code bigger than init code size limit.
ErrNoGenesis is returned when there is no Genesis Block.
ErrNonceMax is returned if the nonce of a transaction sender account has maximum allowed value and would become invalid if incremented.
ErrNonceTooHigh is returned if the nonce of a transaction is higher than the next one expected based on the local chain.
ErrNonceTooLow is returned if the nonce of a transaction is lower than the one present in the local chain.
ErrSenderNoEOA is returned if the sender of a transaction is a contract.
ErrTipAboveFeeCap is a sanity error to ensure no one is able to specify a transaction with a tip higher than the total fee cap.
ErrTipVeryHigh is a sanity error to avoid extremely big numbers specified in the tip field.
ErrTxTypeNotSupported is returned if a transaction is not supported in the current network configuration.
No description provided by the author

# Structs

Parameters for PoS block building See also https://github.com/ethereum/execution-apis/blob/main/src/engine/cancun.md#payloadattributesv3.
BlockGen creates blocks for testing.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GasPool tracks the amount of gas available during execution of the transactions in a block.
No description provided by the author
NewTxsEvent is posted when a batch of transactions enter the transaction pool.
No description provided by the author
RemovedLogsEvent is posted when a reorg happens.
The State Transitioning Model A state transition is a change made when a transaction is applied to the current world state The state transitioning model does all the necessary work to work out a valid new state root.
TxSenderCacher is a helper structure to concurrently ecrecover transaction senders from digital signatures on background threads.

# Interfaces

Message represents a message sent to a contract.

# Type aliases

No description provided by the author
No description provided by the author