Versions in this module Expand all Collapse all v1 v1.0.2 Dec 20, 2016 Changes in this version + var MaxTrieCacheGen = uint16(120) + var StartingNonce uint64 + type Account struct + Balance *big.Int + CodeHash []byte + Nonce uint64 + Root common.Hash + type Code []byte + func (self Code) String() string + type Dump struct + Accounts map[string]DumpAccount + Root string + type DumpAccount struct + Balance string + Code string + CodeHash string + Nonce uint64 + Root string + Storage map[string]string + type ManagedState struct + func ManageState(statedb *StateDB) *ManagedState + func (ms *ManagedState) GetNonce(addr common.Address) uint64 + func (ms *ManagedState) HasAccount(addr common.Address) bool + func (ms *ManagedState) NewNonce(addr common.Address) uint64 + func (ms *ManagedState) RemoveNonce(addr common.Address, n uint64) + func (ms *ManagedState) SetNonce(addr common.Address, nonce uint64) + func (ms *ManagedState) SetState(statedb *StateDB) + type NodeIterator struct + Entry interface{} + Error error + Hash common.Hash + Parent common.Hash + func NewNodeIterator(state *StateDB) *NodeIterator + func (it *NodeIterator) Next() bool + type StateDB struct + func New(root common.Hash, db ethdb.Database) (*StateDB, error) + func (s *StateDB) Commit() (root common.Hash, err error) + func (s *StateDB) CommitBatch() (root common.Hash, batch ethdb.Batch) + func (s *StateDB) DeleteSuicides() + func (s *StateDB) IntermediateRoot() common.Hash + func (self *StateDB) AddBalance(addr common.Address, amount *big.Int) + func (self *StateDB) AddLog(log *vm.Log) + func (self *StateDB) AddRefund(gas *big.Int) + func (self *StateDB) Copy() *StateDB + func (self *StateDB) CreateAccount(addr common.Address) vm.Account + func (self *StateDB) Dump() []byte + func (self *StateDB) Exist(addr common.Address) bool + func (self *StateDB) GetAccount(addr common.Address) vm.Account + func (self *StateDB) GetBalance(addr common.Address) *big.Int + func (self *StateDB) GetCode(addr common.Address) []byte + func (self *StateDB) GetCodeHash(addr common.Address) common.Hash + func (self *StateDB) GetCodeSize(addr common.Address) int + func (self *StateDB) GetLogs(hash common.Hash) vm.Logs + func (self *StateDB) GetNonce(addr common.Address) uint64 + func (self *StateDB) GetOrNewStateObject(addr common.Address) *StateObject + func (self *StateDB) GetRefund() *big.Int + func (self *StateDB) GetState(a common.Address, b common.Hash) common.Hash + func (self *StateDB) GetStateObject(addr common.Address) (stateObject *StateObject) + func (self *StateDB) GetStorageRoot(addr common.Address) (common.Hash, error) + func (self *StateDB) HasSuicided(addr common.Address) bool + func (self *StateDB) Logs() vm.Logs + func (self *StateDB) MarkStateObjectDirty(addr common.Address) + func (self *StateDB) New(root common.Hash) (*StateDB, error) + func (self *StateDB) RawDump() Dump + func (self *StateDB) Reset(root common.Hash) error + func (self *StateDB) RevertToSnapshot(revid int) + func (self *StateDB) SetBalance(addr common.Address, amount *big.Int) + func (self *StateDB) SetCode(addr common.Address, code []byte) + func (self *StateDB) SetNonce(addr common.Address, nonce uint64) + func (self *StateDB) SetState(addr common.Address, key common.Hash, value common.Hash) + func (self *StateDB) Snapshot() int + func (self *StateDB) StartRecord(thash, bhash common.Hash, ti int) + func (self *StateDB) Suicide(addr common.Address) bool + type StateObject struct + func (c *StateObject) AddBalance(amount *big.Int) + func (c *StateObject) Address() common.Address + func (c *StateObject) EncodeRLP(w io.Writer) error + func (c *StateObject) ReturnGas(gas, price *big.Int) + func (c *StateObject) SubBalance(amount *big.Int) + func (self *StateObject) Balance() *big.Int + func (self *StateObject) Code(db trie.Database) []byte + func (self *StateObject) CodeHash() []byte + func (self *StateObject) CommitTrie(db trie.Database, dbw trie.DatabaseWriter) error + func (self *StateObject) ForEachStorage(cb func(key, value common.Hash) bool) + func (self *StateObject) GetState(db trie.Database, key common.Hash) common.Hash + func (self *StateObject) Nonce() uint64 + func (self *StateObject) SetBalance(amount *big.Int) + func (self *StateObject) SetCode(codeHash common.Hash, code []byte) + func (self *StateObject) SetNonce(nonce uint64) + func (self *StateObject) SetState(db trie.Database, key, value common.Hash) + func (self *StateObject) Value() *big.Int + type StateSync trie.TrieSync + func NewStateSync(root common.Hash, database ethdb.Database) *StateSync + func (s *StateSync) Missing(max int) []common.Hash + func (s *StateSync) Pending() int + func (s *StateSync) Process(list []trie.SyncResult) (int, error) + type Storage map[common.Hash]common.Hash + func (self Storage) Copy() Storage + func (self Storage) String() (str string)