Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLedger ¶
func NewLedger(bc chain.BlockChain) *ledger
Types ¶
type Ledger ¶
type Ledger interface { MiningSnapshotBlock(address string, timestamp int64) error // from self RequestAccountBlock(from string, to string, amount int) error ResponseAccountBlock(from string, to string, reqHash string) error // create account genesis block GetAccountBalance(address string) int ListRequest(address string) []*Req Start() Stop() Init(syncer syncer.Syncer) ListAccountBlock(address string) []*common.AccountStateBlock ListSnapshotBlock() []*common.SnapshotBlock Chain() chain.BlockChain Pool() pool.BlockPool }
Click to show internal directories.
Click to hide internal directories.