Versions in this module Expand all Collapse all v0 v0.7.2 Apr 16, 2020 v0.7.1 Apr 9, 2020 Changes in this version + func GenBestBlockHeaderKey() *pool.ByteBuffer + func GenDataTransactionKey(hash common.Uint256) *pool.ByteBuffer + func GenGenesisBlockKey() *pool.ByteBuffer + type BestBlock struct + Hash common.Uint256 + Height uint32 + type BestStateProvider interface + GetBestBlock func() (BestBlock, error) + GetBestHeader func() (*types.Header, error) + type KeyPrefix byte + const DATA_TRANSACTION + const SYS_BEST_BLOCK + const SYS_BEST_BLOCK_HEADER + const SYS_GENESIS_BLOCK + const SYS_VERSION + type Store struct + func NewStore(path string) (*Store, error) + func (self *Store) Close() error + func (self *Store) ContainTransaction(hash common.Uint256) bool + func (self *Store) GetBestBlock() (BestBlock, error) + func (self *Store) GetBestHeader() (*types.Header, error) + func (self *Store) GetTransaction(hash common.Uint256) (*types.Transaction, error) + func (self *Store) GetTransactionBytes(hash common.Uint256) ([]byte, error) + func (self *Store) PersistBlock(block *types.Block) error + type TransactionProvider interface + ContainTransaction func(hash common.Uint256) bool + GetTransaction func(hash common.Uint256) (*types.Transaction, error) + GetTransactionBytes func(hash common.Uint256) ([]byte, error) + PersistBlock func(block *types.Block) error