Versions in this module Expand all Collapse all v1 v1.1.21 Jul 5, 2021 Changes in this version + func AddMVCC(db dbm.KVDB, detail *types.BlockDetail) (kvlist []*types.KeyValue) + func DelMVCC(db dbm.KVDB, detail *types.BlockDetail) (kvlist []*types.KeyValue) + func DisableLog() + func GetStack() string + func NewLocalDB(cli queue.Client, readOnly bool) db.KVDB + func NewStateDB(client queue.Client, stateHash []byte, localdb db.KVDB, opt *StateDBOption) db.KV + func RegisterPlugin(name string, p plugin) + func SetLogLevel(level string) + type Executor struct + func New(cfg *typ.TuringchainConfig) *Executor + func (exec *Executor) Close() + func (exec *Executor) SetQueueClient(qcli queue.Client) + func (exec *Executor) Wait() + type LocalDB struct + func (l *LocalDB) Begin() + func (l *LocalDB) Close() error + func (l *LocalDB) Commit() error + func (l *LocalDB) DisableRead() + func (l *LocalDB) DisableWrite() + func (l *LocalDB) EnableRead() + func (l *LocalDB) EnableWrite() + func (l *LocalDB) Get(key []byte) ([]byte, error) + func (l *LocalDB) GetSetKeys() (keys []string) + func (l *LocalDB) List(prefix, key []byte, count, direction int32) ([][]byte, error) + func (l *LocalDB) PrefixCount(prefix []byte) (count int64) + func (l *LocalDB) Rollback() + func (l *LocalDB) Set(key []byte, value []byte) error + func (l *LocalDB) StartTx() + type StateDB struct + func (s *StateDB) BatchGet(keys [][]byte) (values [][]byte, err error) + func (s *StateDB) Begin() + func (s *StateDB) Commit() error + func (s *StateDB) Get(key []byte) ([]byte, error) + func (s *StateDB) GetSetKeys() (keys []string) + func (s *StateDB) Rollback() + func (s *StateDB) Set(key []byte, value []byte) error + func (s *StateDB) StartTx() + type StateDBOption struct + EnableMVCC bool + Height int64