X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=protocol%2Fstore.go;h=f93b1ba7704cab83d349eeb0d57ecd5816929691;hb=faa1881b5d4ad5e6f8409b6c4aaecf6aa7f8a946;hp=2da3ed1c6fb5d22612523e3d8ab1744b3715cd3a;hpb=42c5ab23c13e7f43d0055221ec38752555bd987e;p=bytom%2Fvapor.git diff --git a/protocol/store.go b/protocol/store.go index 2da3ed1c..f93b1ba7 100644 --- a/protocol/store.go +++ b/protocol/store.go @@ -10,7 +10,7 @@ import ( ) var ( - ErrNotFoundVoteResult = errors.New("can't find the vote result by given sequence") + ErrNotFoundConsensusResult = errors.New("can't find the vote result by given sequence") ) // Store provides storage interface for blockchain data @@ -23,13 +23,13 @@ type Store interface { GetTransactionStatus(*bc.Hash) (*bc.TransactionStatus, error) GetTransactionsUtxo(*state.UtxoViewpoint, []*bc.Tx) error GetUtxo(*bc.Hash) (*storage.UtxoEntry, error) - GetVoteResult(uint64) (*state.VoteResult, error) + GetConsensusResult(uint64) (*state.ConsensusResult, error) GetMainChainHash(uint64) (*bc.Hash, error) GetBlockHashesByHeight(uint64) ([]*bc.Hash, error) SaveBlock(*types.Block, *bc.TransactionStatus) error SaveBlockHeader(*types.BlockHeader) error - SaveChainStatus(*types.BlockHeader, *types.BlockHeader, []*types.BlockHeader, *state.UtxoViewpoint, []*state.VoteResult) error + SaveChainStatus(*types.BlockHeader, *types.BlockHeader, []*types.BlockHeader, *state.UtxoViewpoint, []*state.ConsensusResult) error } // BlockStoreState represents the core's db status