Versions in this module Expand all Collapse all v1 v1.0.2 Dec 20, 2016 Changes in this version + var StartingNonce uint64 + type Code []byte + func (self Code) String() string + type LightState struct + func NewLightState(root common.Hash, odr OdrBackend) *LightState + func (self *LightState) AddBalance(ctx context.Context, addr common.Address, amount *big.Int) error + func (self *LightState) Copy() *LightState + func (self *LightState) CreateStateObject(ctx context.Context, addr common.Address) (*StateObject, error) + func (self *LightState) Delete(ctx context.Context, addr common.Address) (bool, error) + func (self *LightState) GetBalance(ctx context.Context, addr common.Address) (*big.Int, error) + func (self *LightState) GetCode(ctx context.Context, addr common.Address) ([]byte, error) + func (self *LightState) GetNonce(ctx context.Context, addr common.Address) (uint64, error) + func (self *LightState) GetOrNewStateObject(ctx context.Context, addr common.Address) (*StateObject, error) + func (self *LightState) GetState(ctx context.Context, a common.Address, b common.Hash) (common.Hash, error) + func (self *LightState) GetStateObject(ctx context.Context, addr common.Address) (stateObject *StateObject, err error) + func (self *LightState) HasAccount(ctx context.Context, addr common.Address) (bool, error) + func (self *LightState) IsDeleted(ctx context.Context, addr common.Address) (bool, error) + func (self *LightState) Set(state *LightState) + func (self *LightState) SetCode(ctx context.Context, addr common.Address, code []byte) error + func (self *LightState) SetNonce(ctx context.Context, addr common.Address, nonce uint64) error + func (self *LightState) SetState(ctx context.Context, addr common.Address, key common.Hash, value common.Hash) error + func (self *LightState) SetStateObject(object *StateObject) + type LightTrie struct + func NewLightTrie(root common.Hash, odr OdrBackend, useFakeMap bool) *LightTrie + func (t *LightTrie) Delete(ctx context.Context, key []byte) (err error) + func (t *LightTrie) Get(ctx context.Context, key []byte) (res []byte, err error) + func (t *LightTrie) Update(ctx context.Context, key, value []byte) (err error) + type NodeDataRequest struct + func (req *NodeDataRequest) GetData() []byte + func (req *NodeDataRequest) StoreResult(db ethdb.Database) + type OdrBackend interface + Database func() ethdb.Database + Retrieve func(ctx context.Context, req OdrRequest) error + type OdrRequest interface + StoreResult func(db ethdb.Database) + type StateObject struct + func DecodeObject(ctx context.Context, address common.Address, odr OdrBackend, data []byte) (*StateObject, error) + func NewStateObject(address common.Address, odr OdrBackend) *StateObject + func (c *StateObject) AddBalance(amount *big.Int) + func (c *StateObject) Address() common.Address + func (c *StateObject) SetBalance(amount *big.Int) + func (c *StateObject) SubBalance(amount *big.Int) + func (self *StateObject) Balance() *big.Int + func (self *StateObject) Code() []byte + func (self *StateObject) Copy() *StateObject + func (self *StateObject) GetState(ctx context.Context, key common.Hash) (common.Hash, error) + func (self *StateObject) MarkForDeletion() + func (self *StateObject) Nonce() uint64 + func (self *StateObject) SetCode(code []byte) + func (self *StateObject) SetNonce(nonce uint64) + func (self *StateObject) SetState(k, value common.Hash) + func (self *StateObject) Storage() Storage + type Storage map[string]common.Hash + func (self Storage) Copy() Storage + func (self Storage) String() (str string) + type TrieRequest struct + func (req *TrieRequest) StoreResult(db ethdb.Database)