Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppBlockChain ¶
type AppBlockChain interface { VerifyBlock(block *wire.MsgBlock) error ProposeBlock(pk []byte, sk []byte) (*wire.MsgBlock, error) ProposeAndAcceptEmptyBlock(height int64) (*wire.BlockHeader, error) AcceptBlock(block *wire.MsgBlock) error Start(prevReshardheader *wire.BlockHeader) Stop() PreStart() }
AppBlockChain is used to manage merkle tree.
type Fetcher ¶
type Fetcher interface { // Request a given number of transactions from storage node. FetchTransactions(number int, hashList []uint32, shard shard.Index) // Request data for abci initalization from storage node FetchInitData(shard shard.Index) }
Fetcher is an interface to dealing with request fetching information from storage node.
Click to show internal directories.
Click to hide internal directories.