Documentation ¶
Index ¶
- Constants
- func LoadAccount(sm protocol.StateManager, addrHash hash.PKHash) (*state.Account, error)
- func LoadOrCreateAccount(sm protocol.StateManager, encodedAddr string, init *big.Int) (*state.Account, error)
- func SetNonce(i noncer, state *state.Account)
- func StoreAccount(sm protocol.StateManager, encodedAddr string, acct *state.Account) error
- type Protocol
Constants ¶
View Source
const TransferSizeLimit = 32 * 1024
TransferSizeLimit is the maximum size of transfer allowed
Variables ¶
This section is empty.
Functions ¶
func LoadAccount ¶
LoadAccount loads an account state
func LoadOrCreateAccount ¶
func LoadOrCreateAccount(sm protocol.StateManager, encodedAddr string, init *big.Int) (*state.Account, error)
LoadOrCreateAccount either loads an account state or creates an account state
func StoreAccount ¶
StoreAccount puts updated account state to trie
Types ¶
Click to show internal directories.
Click to hide internal directories.