Documentation
¶
Index ¶
- type AVMChain
- type DBCache
- func (cache *DBCache) Commit()
- func (cache *DBCache) FindInternal(prefix blockchain.EntryPrefix, keyPrefix string) database.Iterator
- func (cache *DBCache) GetChainStoreDb() database.Database
- func (cache *DBCache) GetOrAdd(prefix blockchain.EntryPrefix, key string, value states.IStateValueInterface) (states.IStateValueInterface, error)
- func (cache *DBCache) GetWriteSet() *storage.RWSet
- func (cache *DBCache) TryDelete(prefix blockchain.EntryPrefix, key string) bool
- func (cache *DBCache) TryGet(prefix blockchain.EntryPrefix, key string) (states.IStateValueInterface, error)
- func (cache *DBCache) TryGetInternal(prefix blockchain.EntryPrefix, key string) (states.IStateValueInterface, error)
- type ILedgerStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AVMChain ¶
type AVMChain struct { *blockchain.BlockChain Validator *mempool.Validator Store ILedgerStore }
var DefaultChain *AVMChain
func NewBlockChain ¶
func NewBlockChain(cfg *blockchain.Config, valditator *mempool.Validator, store ILedgerStore) (*AVMChain, error)
func (*AVMChain) GetBlockByHash ¶
Get block with block hash.
type DBCache ¶
func NewDBCache ¶
func (*DBCache) FindInternal ¶
func (cache *DBCache) FindInternal(prefix blockchain.EntryPrefix, keyPrefix string) database.Iterator
func (*DBCache) GetChainStoreDb ¶
func (*DBCache) GetOrAdd ¶
func (cache *DBCache) GetOrAdd(prefix blockchain.EntryPrefix, key string, value states.IStateValueInterface) (states.IStateValueInterface, error)
func (*DBCache) GetWriteSet ¶
func (*DBCache) TryDelete ¶
func (cache *DBCache) TryDelete(prefix blockchain.EntryPrefix, key string) bool
func (*DBCache) TryGet ¶
func (cache *DBCache) TryGet(prefix blockchain.EntryPrefix, key string) (states.IStateValueInterface, error)
func (*DBCache) TryGetInternal ¶
func (cache *DBCache) TryGetInternal(prefix blockchain.EntryPrefix, key string) (states.IStateValueInterface, error)
type ILedgerStore ¶
type ILedgerStore interface { database.Database GetUnspents(txid common.Uint256) ([]*types.Output, error) GetTxReference(tx *types.Transaction) (map[*types.Input]*types.Output, error) GetAccount(programHash *common.Uint168) (*states.AccountState, error) ReadTransaction(hash common.Uint256) (*types.Transaction, common.Uint256, uint32, uint32) GetReceipts(height uint32, hash *common.Uint256) (ntype.Receipts, error) GetBlock(hash common.Uint256) (*types.Block, error) GetHeader(hash common.Uint256) (interfaces.Header, error) }
Click to show internal directories.
Click to hide internal directories.