Versions in this module Expand all Collapse all v6 v6.4.0 May 18, 2020 Changes in this version + var QueryData = types.NewQueryData("Query_") + func Reg(name string, create Create) + type BaseClient struct + Cfg *types.Consensus + func NewBaseClient(cfg *types.Consensus) *BaseClient + func (bc *BaseClient) AddBlock(b *types.Block) error + func (bc *BaseClient) AddTxsToBlock(block *types.Block, txs []*types.Transaction) []*types.Transaction + func (bc *BaseClient) CheckBlock(block *types.BlockDetail) error + func (bc *BaseClient) CheckTxDup(txs []*types.Transaction) (transactions []*types.Transaction) + func (bc *BaseClient) CheckTxExpire(txs []*types.Transaction, height int64, blocktime int64) (transactions []*types.Transaction) + func (bc *BaseClient) Close() + func (bc *BaseClient) CmpBestBlock(newBlock *types.Block, cmpHash []byte) bool + func (bc *BaseClient) ConsensusTicketMiner(iscaughtup *types.IsCaughtUp) + func (bc *BaseClient) EventLoop() + func (bc *BaseClient) ExecConsensus(data *types.ChainExecutor) (types.Message, error) + func (bc *BaseClient) GetAPI() client.QueueProtocolAPI + func (bc *BaseClient) GetCurrentBlock() (b *types.Block) + func (bc *BaseClient) GetCurrentHeight() int64 + func (bc *BaseClient) GetGenesisBlockTime() int64 + func (bc *BaseClient) GetQueueClient() queue.Client + func (bc *BaseClient) InitBlock() + func (bc *BaseClient) InitClient(c queue.Client, minerstartCB func()) + func (bc *BaseClient) InitMiner() + func (bc *BaseClient) IsCaughtUp() bool + func (bc *BaseClient) IsClosed() bool + func (bc *BaseClient) IsMining() bool + func (bc *BaseClient) Lock() + func (bc *BaseClient) PreExecBlock(block *types.Block, errReturn bool) *types.Block + func (bc *BaseClient) RandInt64() int64 + func (bc *BaseClient) ReqBlockByHash(hash []byte) (*types.Block, error) + func (bc *BaseClient) RequestBlock(start int64) (*types.Block, error) + func (bc *BaseClient) RequestLastBlock() (*types.Block, error) + func (bc *BaseClient) RequestTx(listSize int, txHashList [][]byte) []*types.Transaction + func (bc *BaseClient) SetAPI(api client.QueueProtocolAPI) + func (bc *BaseClient) SetChild(c Miner) + func (bc *BaseClient) SetCurrentBlock(b *types.Block) + func (bc *BaseClient) SetQueueClient(c queue.Client) + func (bc *BaseClient) Unlock() + func (bc *BaseClient) UpdateCurrentBlock(b *types.Block) + func (bc *BaseClient) Wait() + func (bc *BaseClient) WriteBlock(prev []byte, block *types.Block) error + type Create func(cfg *types.Consensus, sub []byte) queue.Module + func Load(name string) (create Create, err error) + type Miner interface + AddBlock func(b *types.Block) error + CheckBlock func(parent *types.Block, current *types.BlockDetail) error + CmpBestBlock func(newBlock *types.Block, cmpBlock *types.Block) bool + CreateBlock func() + CreateGenesisTx func() []*types.Transaction + GetGenesisBlockTime func() int64 + ProcEvent func(msg *queue.Message) bool Other modules containing this package github.com/33cn/chain33