Documentation ¶
Index ¶
- func MakeAccounts(chainInstance chain.Chain, num int) map[types.Address]*Account
- type Account
- func (acc *Account) AddOnRoadBlock(block *ledger.AccountBlock)
- func (acc *Account) CreateReceiveBlock() (*vm_db.VmAccountBlock, error)
- func (acc *Account) CreateSendBlock(toAccount *Account) (*vm_db.VmAccountBlock, error)
- func (acc *Account) DeleteOnRoad(blockHash types.Hash)
- func (acc *Account) GetLatestHeight() uint64
- func (acc *Account) HasOnRoadBlock() bool
- func (acc *Account) InsertBlock(vmBlock *vm_db.VmAccountBlock, accounts map[types.Address]*Account)
- func (acc *Account) PopOnRoadBlock() *ledger.AccountBlock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Account ¶
type Account struct { Addr types.Address // encode PrivateKey ed25519.PrivateKey // encode PublicKey ed25519.PublicKey // encode OnRoadBlocks map[types.Hash]*ledger.AccountBlock // encode LatestBlock *ledger.AccountBlock // encode // contains filtered or unexported fields }
func NewAccount ¶
func (*Account) AddOnRoadBlock ¶
func (acc *Account) AddOnRoadBlock(block *ledger.AccountBlock)
func (*Account) CreateReceiveBlock ¶
func (acc *Account) CreateReceiveBlock() (*vm_db.VmAccountBlock, error)
No state_bak hash
func (*Account) CreateSendBlock ¶
func (acc *Account) CreateSendBlock(toAccount *Account) (*vm_db.VmAccountBlock, error)
func (*Account) DeleteOnRoad ¶
func (*Account) GetLatestHeight ¶
func (*Account) HasOnRoadBlock ¶
func (*Account) InsertBlock ¶
func (*Account) PopOnRoadBlock ¶
func (acc *Account) PopOnRoadBlock() *ledger.AccountBlock
Click to show internal directories.
Click to hide internal directories.