Documentation ¶
Index ¶
- Variables
- func NewAddrs(db *leveldb.DB) (*addrs, error)
- func NewDataStore(dataDir string) (*dataStore, error)
- func NewHeaderStore(dataDir string, newHeader func() util.BlockHeader) (*headers, error)
- func NewOps(db *leveldb.DB) *ops
- func NewQue(db *leveldb.DB) *que
- func NewTxs(db *leveldb.DB) *txs
- type Addrs
- type DataBatch
- type DataStore
- type HeaderStore
- type Ops
- type OpsBatch
- type Que
- type QueBatch
- type QueItem
- type Txs
- type TxsBatch
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BKTHeaders = []byte("H") BKTIndexes = []byte("I") BKTChainTip = []byte("B") )
View Source
var ( BKTQue = []byte("Q") BKTQueIdx = []byte("U") )
View Source
var ( BKTTxs = []byte("T") BKTHeightTxs = []byte("H") BKTForkTxs = []byte("F") )
View Source
var (
BKTAddrs = []byte("A")
)
View Source
var (
BKTOps = []byte("O")
)
Functions ¶
func NewDataStore ¶
func NewHeaderStore ¶
func NewHeaderStore(dataDir string, newHeader func() util.BlockHeader) (*headers, error)
Types ¶
type HeaderStore ¶
type Txs ¶
type Txs interface { database.DB Put(tx *util.Tx) error Get(txId *common.Uint256) (*util.Tx, error) GetAll() ([]*util.Tx, error) GetIds(height uint32) ([]*common.Uint256, error) PutForkTxs(txs []*util.Tx, hash *common.Uint256) error GetForkTxs(hash *common.Uint256) ([]*util.Tx, error) Del(txId *common.Uint256) error Batch() TxsBatch }
Click to show internal directories.
Click to hide internal directories.