Documentation ¶
Index ¶
- type DB
- func (db *DB) Clear() error
- func (db *DB) Close() error
- func (db *DB) Delete(key []byte) error
- func (db *DB) FetchTxRecords() ([]txrecords.TxRecord, error)
- func (db *DB) Get(key []byte) ([]byte, error)
- func (db *DB) Put(key, value []byte) error
- func (db *DB) PutTxRecord(tx transactions.ContractCall, height uint64, direction txrecords.Direction) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB encapsulates a leveldb.DB storage.
func (*DB) FetchTxRecords ¶
FetchTxRecords transaction records.
func (*DB) PutTxRecord ¶
func (db *DB) PutTxRecord(tx transactions.ContractCall, height uint64, direction txrecords.Direction) error
PutTxRecord saves the transaction record on the DB.
Click to show internal directories.
Click to hide internal directories.