package
0.9.39
Repository: https://github.com/kirillvs/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
CalcDifficulty is the difficulty adjustment algorithm.
CalcGasLimit computes the gas limit of the next block after parent.
CalcTD computes the total difficulty of block.
Canary will check the 0'd address of the 4 contracts above.
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.
GetBlockByHash returns the block corresponding to the hash or nil if not found.
GetBlockByHash returns the canonical block by number or nil if not found.
GetBlockReceipts returns the receipts generated by the transactions included in block's given hash.
GetReceipt returns a receipt by hash.
IntrinsicGas computes the 'intrisic gas' for a message with the given data.
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
Creates and returns a `BlockCache` with `size`.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Create a new filter which uses a bloom filter on blocks to figure out whether a particular block is interesting or not.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PutBlockReceipts stores the block's transactions associated receipts and stores them by block hash in a single slice.
PutReceipts stores the receipts in the current database.
PutTransactions stores the transactions in the given database.
ReportBlock reports the block to the block reporting tool found at badblocks.ethdev.com.
No description provided by the author
See YP section 4.3.4.
No description provided by the author
No description provided by the author
WriteBlock writes a block to the database.
WriteGenesisBlock writes the genesis block to the database as block number 0.
No description provided by the author
WriteHead force writes the current head.
No description provided by the author

# 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
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

# Structs

No description provided by the author
BlockCache implements a caching mechanism specifically for blocks and uses FILO to pop.
BlockGen creates blocks for testing.
BlockNonceErr indicates that a block's nonce is invalid.
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
ChainSplit is posted when a new head is detected.
No description provided by the author
No description provided by the author
FakePow is a non-validating proof of work implementation.
Filtering interface.
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
Mining operation events.
* 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

TODO move this to types?.
Message represents a message sent to a contract.