Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockHeightTxId ¶
type HistoryDB ¶
type HistoryDB interface {
InitGenesis(genesisBlock *serialization.BlockWithSerializedInfo) error
// CommitBlock commits the block rwsets in an atomic operation
CommitBlock(blockInfo *serialization.BlockWithSerializedInfo, isCache bool) error
//GetHistoryForKey 获得Key的交易历史
GetHistoryForKey(contractName string, key []byte) (HistoryIterator, error)
GetAccountTxHistory(account []byte) (HistoryIterator, error)
GetContractTxHistory(contractName string) (HistoryIterator, error)
// GetLastSavepoint returns the last block height
GetLastSavepoint() (uint64, error)
// Close is used to close database
Close()
}
HistoryDB provides handle to rwSets instances
type HistoryIterator ¶
type HistoryIterator interface {
Next() bool
Value() (*BlockHeightTxId, error)
Release()
}
Click to show internal directories.
Click to hide internal directories.