Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockStoreStateJSON ¶
BlockStoreStateJSON represents the core's db status
type Store ¶
type Store interface { BlockExist(*bc.Hash) bool GetBlock(*bc.Hash) (*types.Block, error) GetBlockHeader(*bc.Hash) (*types.BlockHeader, error) GetMainchain(*bc.Hash) (map[uint64]*bc.Hash, error) GetStoreStatus() BlockStoreStateJSON GetSeed(*bc.Hash) (*bc.Hash, error) GetTransactionStatus(*bc.Hash) (*bc.TransactionStatus, error) GetTransactionsUtxo(*state.UtxoViewpoint, []*bc.Tx) error GetUtxo(*bc.Hash) (*storage.UtxoEntry, error) SaveBlock(*types.Block, *bc.TransactionStatus, *bc.Hash) error SaveChainStatus(*types.Block, *state.UtxoViewpoint, map[uint64]*bc.Hash) error }
Store provides storage interface for blockchain data
Click to show internal directories.
Click to hide internal directories.