# Packages
Provides support for dealing with EVM assembly instructions (e.g., disassembling them).
Package bloombits implements bloom filtering on batches of data.
No description provided by the author
Package rawdb contains a collection of low level database accessors.
Package state provides a caching layer atop the NEAT Blockchain state trie.
No description provided by the author
Package vm implements the Ethereum Virtual Machine.
# Functions
ApplyMessage computes the new state by applying the given message against the old state within the environment.
No description provided by the author
No description provided by the author
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
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
DefaultGenesisBlock returns the Ethereum main net genesis block.
No description provided by the author
DefaultTestnetGenesisBlock returns the Ropsten network genesis block.
No description provided by the author
GenerateChain creates a chain of n blocks.
GenesisBlockForTesting creates and writes a block in which addr has the given wei balance.
No description provided by the author
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
No description provided by the author
No description provided by the author
No description provided by the author
IntrinsicGas computes the 'intrinsic gas' for a message with the given data.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewEVMContext creates a new context for use in the EVM.
NewHeaderChain creates a new HeaderChain structure.
NewStateProcessor initialises a new StateProcessor.
NewStateTransition initialises and returns a new state transition object.
NewTxPool creates a new transaction pool to gather, sort and filter inbound transactions from the network.
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
SetupGenesisBlock writes or updates the genesis block in db.
No description provided by the author
No description provided by the author
Transfer subtracts amount from sender and adds amount to recipient using the given Db.
No description provided by the author
No description provided by the author
# 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
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
DefaultTxPoolConfig contains the default configurations for the transaction pool.
ErrAlreadyCandidate is returned if the request address has become candidate already.
No description provided by the author
ErrBlacklistedHash is returned if a block to import is on the blacklist.
Delegation Error ErrCancelSelfDelegate is returned if the cancel delegate apply to the self address.
ErrCannotCandidate is returned if the request address belongs to Annual/SemiAnnual Supernode.
ErrCannotDelegate is returned if the request address does not have deposit balance in Annual/SemiAnnual Supernode.
ErrCannotUnbond is returned if the request address belongs to Annual/SemiAnnual Supernode.
ErrCannotUnRegister is returned if the request address belongs to Annual/SemiAnnual Supernode.
ErrCommission is returned if the request Commission value not between 0 and 100.
ErrDelegateAmount is returned if the delegate amount less than 0.
ErrExceedDelegationAddressLimit is returned if delegated address number exceed the limit.
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.
ErrInsufficientFunds is returned if the total cost of executing a transaction is higher than the balance of the user's account.
ErrInsufficientProxiedBalance is returned if the cancellation amount of executing a transaction is higher than the proxied balance of the user's account.
ErrIntrinsicGas is returned if the transaction is specified to use less gas than required to start the invocation.
No description provided by the author
ErrInvalidSender is returned if the transaction contains an invalid signature.
ErrInvalidTx4 is returned if the tx4 has been checked during execution.
ErrKnownBlock is returned when a block to import is already known locally.
No description provided by the author
ErrMinimumRegisterAmount is returned if the request security deposit less than the minimum value.
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.
ErrNotAllowedInMainChain is returned if the transaction with main flag = false be sent to main chain.
ErrNotAllowedInSideChain is returned if the transaction with side flag = false be sent to side chain.
ErrNotCandidate is returned if the request address is not a candidate.
ErrNotOwner is returned if the Address not owner.
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.
ErrVoteAmountTooHight is returned if the vote amount greater than proxied amount + self amount.
Vote Error ErrVoteAmountTooLow is returned if the vote amount less than proxied delegation amount.
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
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
No description provided by the author
No description provided by the author
Create Side Chain Event.
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
NewMinedBlockEvent is posted when a block has been imported.
PendingLogsEvent is posted pre mining and notifies of pending logs.
PendingStateEvent is posted pre mining and notifies of pending state changes.
RemovedLogsEvent is posted when a reorg happens.
RemovedTransactionEvent is posted when a reorg happens.
Start Mining Event.
StateProcessor is a basic Processor, which takes care of transitioning state from one point to another.
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.
Stop Mining Event.
Tx3ProofDataEvent is posted when a tx3ProofData enters.
TxPool contains all currently known transactions.
TxPoolConfig are the configuration parameters of the transaction pool.
TxPreEvent is posted when a transaction enters the transaction pool.
# Interfaces
ChainContext supports retrieving headers and consensus parameters from the current blockchain to be used during transaction processing.
No description provided by the author
No description provided by the author
No description provided by the author
Message represents a message sent to a contract.
Processor is an interface for processing blocks using a given initial state.
No description provided by the author
Validator is an interface which defines the standard for block validation.
# Type aliases
No description provided by the author
CrossChain Callback.
DeleteCallback is a callback function that is called by SetHead before each header is deleted.
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
No description provided by the author
Non-CrossChain Callback.
TxStatus is the current status of a transaction as seen by the pool.
WhCallback is a callback function for inserting individual headers.
No description provided by the author