Versions in this module Expand all Collapse all v6 v6.4.0 May 18, 2020 Changes in this version + var TestPrivkeyHex = []string + var TestPrivkeyList = []crypto.PrivKey + func BitMapBit(bitmap []byte, index uint32) bool + func CalcBitMap(bases, subs [][]byte, subData []*types.ReceiptData) []byte + func CalcBitMapByBitMap(bases, subs [][]byte, bitmap []byte) []byte + func CalcSingleBitMap(bases [][]byte, data []*types.ReceiptData) []byte + func CheckBlock(client queue.Client, block *types.BlockDetail) error + func CheckDupTx(client queue.Client, txs []*types.Transaction, height int64) (transactions []*types.Transaction, err error) + func CheckTxDup(client queue.Client, txs []*types.TransactionCache, height int64) (transactions []*types.TransactionCache, err error) + func CloseTestDB(dir string, dbm db.DB) + func CmpBestBlock(client queue.Client, newBlock *types.Block, cmpHash []byte) bool + func CreateCoinsBlock(cfg *types.Chain33Config, priv crypto.PrivKey, n int64) *types.Block + func CreateCoinsTx(cfg *types.Chain33Config, priv crypto.PrivKey, to string, amount int64) *types.Transaction + func CreateManageTx(cfg *types.Chain33Config, priv crypto.PrivKey, key, op, value string) *types.Transaction + func CreateNewBlock(cfg *types.Chain33Config, parent *types.Block, txs []*types.Transaction) *types.Block + func CreateNoneBlock(cfg *types.Chain33Config, priv crypto.PrivKey, n int64) *types.Block + func CreateNoneTx(cfg *types.Chain33Config, priv crypto.PrivKey) *types.Transaction + func CreateTestDB() (string, db.DB, db.KVDB) + func CreateTxWithExecer(cfg *types.Chain33Config, priv crypto.PrivKey, execer string) *types.Transaction + func CreateTxWithTxHeight(cfg *types.Chain33Config, priv crypto.PrivKey, to string, amount, expire int64) *types.Transaction + func DelDupKey(kvs []*types.KeyValue) []*types.KeyValue + func DelDupTx(txs []*types.TransactionCache) (ret []*types.TransactionCache) + func ExecAndCheckBlock(qclient queue.Client, block *types.Block, txs []*types.Transaction, ...) (*types.Block, error) + func ExecAndCheckBlockCB(qclient queue.Client, block *types.Block, txs []*types.Transaction, ...) (*types.Block, error) + func ExecBlock(client queue.Client, prevStateRoot []byte, block *types.Block, ...) (*types.BlockDetail, []*types.Transaction, error) + func ExecBlockUpgrade(client queue.Client, prevStateRoot []byte, block *types.Block, sync bool) error + func ExecKVMemSet(client queue.Client, prevStateRoot []byte, height int64, ...) ([]byte, error) + func ExecKVSetCommit(client queue.Client, hash []byte, upgrade bool) error + func ExecKVSetRollback(client queue.Client, hash []byte) error + func ExecTx(client queue.Client, prevStateRoot []byte, block *types.Block) (*types.Receipts, error) + func GenCoinsTxs(cfg *types.Chain33Config, priv crypto.PrivKey, n int64) (txs []*types.Transaction) + func GenNoneTxs(cfg *types.Chain33Config, priv crypto.PrivKey, n int64) (txs []*types.Transaction) + func GenTxsTxHeigt(cfg *types.Chain33Config, priv crypto.PrivKey, n, height int64) (txs []*types.Transaction) + func Genaddress() (string, crypto.PrivKey) + func GetParaExecName(paraName string, name string) string + func HexToPrivkey(key string) crypto.PrivKey + func JSONPrint(t TestingT, input interface{}) + func MakeStringToLower(in string, pos, count int) (out string, err error) + func MakeStringToUpper(in string, pos, count int) (out string, err error) + func PreExecBlock(client queue.Client, prevStateRoot []byte, block *types.Block, ...) (*types.BlockDetail, []*types.Transaction, error) + func PrintKV(kvs []*types.KeyValue) + func ReportErrEventToFront(logger log.Logger, client queue.Client, frommodule string, tomodule string, ...) + func ResetDatadir(cfg *types.Config, datadir string) string + func SaveKVList(kvdb db.DB, kvs []*types.KeyValue) + type HealthCheckServer struct + func NewHealthCheckServer(c queue.Client) *HealthCheckServer + func (s *HealthCheckServer) Close() + func (s *HealthCheckServer) Start(cfg *types.HealthCheck) + type MockModule struct + Key string + func (m *MockModule) Close() + func (m *MockModule) SetQueueClient(client queue.Client) + func (m *MockModule) Wait() + type TestingT interface + Error func(args ...interface{}) + Log func(args ...interface{}) Other modules containing this package github.com/33cn/chain33