# Packages
Package bloombits implements bloom filtering on batches of data.
Package rawdb contains a collection of low level database accessors.
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
No description provided by the author
CalcGasLimit computes the gas limit of the next block after parent.
CanTransfer checks whether there are enough funds in the address' account to make a transfer.
No description provided by the author
DefaultGenesisBlock returns the YOUChain main net genesis block.
DefaultTestNetGenesisBlock returns the YOUChain public test-net genesis block.
No description provided by the author
GetHashFn returns a GetHashFunc which retrieves header hashes by number.
No description provided by the author
No description provided by the author
No description provided by the author
NewBloomIndexer returns a chain indexer that generates bloom bits data for the canonical chain for fast logs filtering.
NewChainIndexer creates a new chain indexer to do background processing on chain segments of a given size after certain number of confirmations passed.
No description provided by the author
NewChtIndexer creates a Cht chain indexer.
NewEVMContext creates a new context for use in the EVM.
NewHeaderChain creates a new HeaderChain structure.
No description provided by the author
NewStateProcessor initialises a new StateProcessor.
No description provided by the author
No description provided by the author
No description provided by the author
ProcessYouVersionState determines the current protocol state from the previous header, and applies it to the current header.
No description provided by the author
SetupGenesisBlock writes or updates the genesis block in db.
No description provided by the author
Transfer subtracts amount from sender and adds amount to recipient using the given Db.
VerifyYouVersionState verifies whether the current protocol state was upgraded or derived under the rules.
# Constants
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
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
ErrBlacklistedHash is returned if a block to import is on the blacklist.
No description provided by the author
ErrGasLimit is returned if a transaction's requested gas limit exceeds the maximum allowance of the current block.
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.
No description provided by the author
ErrInsufficientFunds is returned if the total cost of executing a transaction is higher than the balance of the user's account.
ErrIntrinsicGas is returned if the transaction is specified to use less gas than required to start the invocation.
ErrInvalidSender is returned if the transaction contains an invalid signature.
ErrKnownBlock is returned when a block to import is already known locally.
ErrNegativeValue is a sanity error to ensure noone is able to specify a transaction with a negative value.
No description provided by the author
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.
ErrOversizedData is returned if the input data of a transaction is greater than some meaningful limit a user might use.
ErrReplaceUnderpriced is returned if a transaction is attempted to be replaced with a different one without the required price bump.
ErrUnderpriced is returned if a transaction's gas price is below the minimum configured for the transaction pool.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
BloomWithTrieIndexer implements core.ChainIndexer, building up a rotated bloom bits index for the YOUChain header bloom filters, permitting blazing fast filtering.
No description provided by the author
ChainHeadEvent is posted when a block has been insert.
ChainIndexer does a post-processing job for equally sized sections of the canonical chain (like BlooomBits and CHT structures).
No description provided by the author
ChtIndexerBackend implements core.ChainIndexerBackend.For building canonical hash trie.
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
Genesis specifies the header fields, state of a genesis block.
GenesisAccount is an account in the state of the genesis block.
GenesisMismatchError is raised when trying to overwrite an existing genesis block with an incompatible one.
No description provided by the author
HeaderChain implements the basic block header chain logic that is shared by core.BlockChain and light.LightChain.
No description provided by the author
MessageContext is the current context for applying a message.
NewMinedBlockEvent is posted when a block has been mined.
NewTxsEvent is posted when a batch of transactions enter the transaction pool.
PendingLogsEvent is posted pre mining and notifies of pending logs.
RemovedLogsEvent is posted when a reorg happens.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
ChainContext supports retrieving headers and consensus parameters from the current blockchain to be used during transaction processing.
ChainIndexerBackend defines the methods needed to process chain segments in the background and write the segment results into the database.
ChainIndexerChain interface is used for connecting the indexer to a blockchain.
ChtBuilder can build a temporary cht based on an existing trie and new headers.
IRouter is an interface for routing a transaction to a state converter.
Message represents a message to be applied to a state.
MissingNodesFetcher is for a trie to fetch it's missing nodes.
Processor is an interface for processing blocks using a given initial state.
TxConverter is an interface for converting the state with given transactions.
Validator is an interface which defines the standard for block validation.
No description provided by the author
# Type aliases
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.
GenesisAlloc specifies the initial state that is part of the genesis block.
No description provided by the author
TxStatus is the current status of a transaction as seen by the pool.
No description provided by the author
WhCallback is a callback function for inserting individual headers.