package
1.3.3
Repository: https://github.com/decebal/go-ethereum.git
Documentation: pkg.go.dev

# Packages

Package state provides a caching layer atop the Ethereum state trie.
Package types contains data types related to Ethereum consensus.
Package vm implements the Ethereum Virtual Machine.

# Functions

AccumulateRewards credits the coinbase of the given block with the mining reward.
No description provided by the author
ApplyTransaction attemps to apply a transaction to the given state database and uses the input parameters for its environment.
CalcDifficulty is the difficulty adjustment algorithm.
CalcGasLimit computes the gas limit of the next block after parent.
Call executes within the given contract.
CallCode executes the given address' code as the given contract address.
Canary will check the 0'd address of the 4 contracts above.
Create creates a new contract with the given code.
DeleteBlock removes all block data associated with a hash.
DeleteBlockReceipts removes all receipt data associated with a block hash.
DeleteBody removes all block body data associated with a hash.
DeleteCanonicalHash removes the number to hash canonical mapping.
DeleteHeader removes all block header data associated with a hash.
DeleteReceipt removes all receipt data associated with a transaction hash.
DeleteTd removes all block total difficulty data associated with a hash.
DeleteTransaction removes all transaction data associated with a hash.
No description provided by the author
GenerateChain creates a chain of n blocks.
GenesisBlockForTesting creates a block in which addr has the given wei balance.
GetBlock retrieves an entire block corresponding to the hash, assembling it back from the stored header and body.
[deprecated by the header/block split, remove eventually] GetBlockByHashOld returns the old combined block corresponding to the hash or nil if not found.
GetBlockReceipts retrieves the receipts generated by the transactions included in a block given by its hash.
GetBody retrieves the block body (transactons, uncles) corresponding to the hash, nil if none found.
GetBodyRLP retrieves the block body (transactions and uncles) in RLP encoding.
GetCanonicalHash retrieves a hash assigned to a canonical block number.
GetHeadBlockHash retrieves the hash of the current canonical head block.
GetHeader retrieves the block header corresponding to the hash, nil if none found.
GetHeaderRLP retrieves a block header in its raw RLP database encoding, or nil if the header's not found.
GetHeadFastBlockHash retrieves the hash of the current canonical head block during fast synchronization.
GetHeadHeaderHash retrieves the hash of the current canonical head block's header.
GetMipmapBloom returns a bloom filter using the number and level as input parameters.
GetReceipt returns a receipt by hash.
GetTd retrieves a block's total difficulty corresponding to the hash, nil if none found.
GetTransaction retrieves a specific transaction from the database, along with its added positional metadata.
IntrinsicGas computes the 'intrisic gas' for a message with the given data.
No description provided by the author
No description provided by the author
IsBlockNonceErr returns true for invalid block nonce errors.
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewBlockChain returns a fully initialised block chain using information available in the database.
NewBlockValidator returns a new block validator which is safe for re-use.
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
ReportBlock reports the block to the block reporting tool found at badblocks.ethdev.com.
generic transfer method.
No description provided by the author
Validates a header.
No description provided by the author
No description provided by the author
WriteBlock serializes a block into the database, header and body separately.
WriteBlockReceipts stores all the transaction receipts belonging to a block as a single receipt slice.
WriteBody serializes the body of a block into the database.
WriteCanonicalHash stores the canonical hash for the given block number.
WriteGenesisBlock writes the genesis block to the database as block number 0.
No description provided by the author
WriteHeadBlockHash stores the head block's hash.
WriteHeader serializes a block header into the database.
WriteHeadFastBlockHash stores the fast head block's hash.
WriteHeadHeaderHash stores the head header's hash.
WriteMapmapBloom writes each address included in the receipts' logs to the MIP bloom bin.
No description provided by the author
WriteReceipts stores a batch of transaction receipts into the database.
WriteTd serializes the total difficulty of a block into the database.
No description provided by the author
WriteTransactions stores the transactions associated with a specific block into the given database.

# Constants

must be bumped when consensus algorithm is changed, this forces the upgradedb command to be run (forces the blocks to be imported again using the new algorithm).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Set of manually tracked bad hashes (usually hard forks).
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
DisabledBadBlockReporting can be set to prevent blocks being reported.
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
Transaction Pool Errors.
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

# Structs

BlockChain represents the canonical chain given a database with a genesis block.
BlockGen creates blocks for testing.
BlockNonceErr indicates that a block's nonce is invalid.
BlockValidator is responsible for validating block headers, uncles and processed state.
No description provided by the author
No description provided by the author
No description provided by the author
ChainSplit is posted when a new head is detected.
No description provided by the author
FakePow is a non-validating proof of work implementation.
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
NewBlockEvent is posted when a block has been imported.
NewMinedBlockEvent is posted when a block has been imported.
No description provided by the author
Parent error.
No description provided by the author
RemovedTransactionEvent is posted when a reorg happens.
Mining operation events.
No description provided by the author
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 all the necessary work to work out a valid new state root.
No description provided by the author
No description provided by the author
TxPool contains all currently known transactions.
TxPostEvent is posted when a transaction has been processed.
TxPreEvent is posted when a transaction enters the transaction pool.
No description provided by the author
Block validation error.
No description provided by the author
No description provided by the author

# Interfaces

Backend is an interface defining the basic functionality for an operable node with all the functionality to be a functional, valid Ethereum operator.
Message represents a message sent to a contract.
Processor is an interface for processing blocks using a given initial state.
Validator is an interface which defines the standard for block validation.

# Type aliases

No description provided by the author
GasPool tracks the amount of gas available during execution of the transactions in a block.