"github.com/bytom/vapor/protocol/state"
)
+// predefine errors
var (
ErrNotFoundConsensusResult = errors.New("can't find the vote result by given sequence")
)
GetMainChainHash(uint64) (*bc.Hash, error)
GetBlockHashesByHeight(uint64) ([]*bc.Hash, error)
+ DeleteConsensusResult(uint64) error
+ DeleteBlock(*types.Block) error
SaveBlock(*types.Block, *bc.TransactionStatus) error
SaveBlockHeader(*types.BlockHeader) error
SaveChainStatus(*types.BlockHeader, *types.BlockHeader, []*types.BlockHeader, *state.UtxoViewpoint, []*state.ConsensusResult) error