Versions in this module Expand all Collapse all v1 v1.1.2 Sep 16, 2021 Changes in this version + const UtxoPreFix + var BlockHeaderPrefix = []byte("BH:") + var BlockPrefix = []byte("B:") + var BlockStoreKey = []byte("blockStore") + var TxStatusPrefix = []byte("BTS:") + func CalcBlockHeaderKey(height uint64, hash *bc.Hash) []byte + func CalcBlockKey(hash *bc.Hash) []byte + func CalcTxStatusKey(hash *bc.Hash) []byte + func CalcUtxoKey(hash *bc.Hash) []byte + func GetBlock(db dbm.DB, hash *bc.Hash) (*types.Block, error) + func SaveUtxoView(batch dbm.Batch, view *state.UtxoViewpoint) error + type Store struct + func NewStore(db dbm.DB) *Store + func (s *Store) BlockExist(hash *bc.Hash) bool + func (s *Store) GetBlock(hash *bc.Hash) (*types.Block, error) + func (s *Store) GetStoreStatus() *protocol.BlockStoreState + func (s *Store) GetTransactionStatus(hash *bc.Hash) (*bc.TransactionStatus, error) + func (s *Store) GetTransactionsUtxo(view *state.UtxoViewpoint, txs []*bc.Tx) error + func (s *Store) GetUtxo(hash *bc.Hash) (*storage.UtxoEntry, error) + func (s *Store) LoadBlockIndex(stateBestHeight uint64) (*state.BlockIndex, error) + func (s *Store) SaveBlock(block *types.Block, ts *bc.TransactionStatus) error + func (s *Store) SaveChainStatus(node *state.BlockNode, view *state.UtxoViewpoint) error