Versions in this module Expand all Collapse all v1 v1.0.0 Jul 13, 2019 Changes in this version + type MockISlaveConn struct + func NewMockISlaveConn(ctrl *gomock.Controller) *MockISlaveConn + func (m *MockISlaveConn) AddBlockListForSync(request *rpc.AddBlockListForSyncRequest) (*rpc.ShardStatus, error) + func (m *MockISlaveConn) AddRootBlock(rootBlock *types.RootBlock, expectSwitch bool) error + func (m *MockISlaveConn) AddTransaction(tx *types.Transaction) error + func (m *MockISlaveConn) AddTransactions(request *p2p.NewTransactionList) (*rpc.HashList, error) + func (m *MockISlaveConn) EXPECT() *MockISlaveConnMockRecorder + func (m *MockISlaveConn) EstimateGas(tx *types.Transaction, fromAddress *account.Address) (uint32, error) + func (m *MockISlaveConn) ExecuteTransaction(tx *types.Transaction, fromAddress *account.Address, height *uint64) ([]byte, error) + func (m *MockISlaveConn) GasPrice(branch account.Branch) (uint64, error) + func (m *MockISlaveConn) GenTx(numTxPerShard, xShardPercent uint32, tx *types.Transaction) error + func (m *MockISlaveConn) GetAccountData(address *account.Address, height *uint64) (*rpc.GetAccountDataResponse, error) + func (m *MockISlaveConn) GetCode(address *account.Address, height *uint64) ([]byte, error) + func (m *MockISlaveConn) GetLogs(branch account.Branch, address []account.Address, topics [][]common.Hash, ...) ([]*types.Log, error) + func (m *MockISlaveConn) GetMinorBlockByHash(blockHash common.Hash, branch account.Branch) (*types.MinorBlock, error) + func (m *MockISlaveConn) GetMinorBlockByHeight(height uint64, branch account.Branch) (*types.MinorBlock, error) + func (m *MockISlaveConn) GetMinorBlockHeaders(request *p2p.GetMinorBlockHeaderListRequest) (*p2p.GetMinorBlockHeaderListResponse, error) + func (m *MockISlaveConn) GetMinorBlocks(request *rpc.GetMinorBlockListRequest) (*p2p.GetMinorBlockListResponse, error) + func (m *MockISlaveConn) GetShardMaskList() []*types.ChainMask + func (m *MockISlaveConn) GetSlaveID() string + func (m *MockISlaveConn) GetStorageAt(address *account.Address, key common.Hash, height *uint64) (common.Hash, error) + func (m *MockISlaveConn) GetTransactionByHash(txHash common.Hash, branch account.Branch) (*types.MinorBlock, uint32, error) + func (m *MockISlaveConn) GetTransactionReceipt(txHash common.Hash, branch account.Branch) (*types.MinorBlock, uint32, *types.Receipt, error) + func (m *MockISlaveConn) GetTransactionsByAddress(address *account.Address, start []byte, limit uint32) ([]*rpc.TransactionDetail, []byte, error) + func (m *MockISlaveConn) GetUnconfirmedHeaders() (*rpc.GetUnconfirmedHeadersResponse, error) + func (m *MockISlaveConn) GetWork(branch account.Branch) (*consensus.MiningWork, error) + func (m *MockISlaveConn) HandleNewMinorBlock(request *p2p.NewBlockMinor) (bool, error) + func (m *MockISlaveConn) HandleNewTip(request *rpc.HandleNewTipRequest) (bool, error) + func (m *MockISlaveConn) HasShard(fullShardID uint32) bool + func (m *MockISlaveConn) HeartBeat() bool + func (m *MockISlaveConn) MasterInfo(ip string, port uint16, rootTip *types.RootBlock) error + func (m *MockISlaveConn) SendMiningConfigToSlaves(artificialTxConfig *rpc.ArtificialTxConfig, mining bool) error + func (m *MockISlaveConn) SendPing() ([]byte, []*types.ChainMask, error) + func (m *MockISlaveConn) SetMining(mining bool) error + func (m *MockISlaveConn) SubmitWork(work *rpc.SubmitWorkRequest) (bool, error) + type MockISlaveConnMockRecorder struct + func (mr *MockISlaveConnMockRecorder) AddBlockListForSync(request interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) AddRootBlock(rootBlock, expectSwitch interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) AddTransaction(tx interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) AddTransactions(request interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) EstimateGas(tx, fromAddress interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) ExecuteTransaction(tx, fromAddress, height interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) GasPrice(branch interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) GenTx(numTxPerShard, xShardPercent, tx interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) GetAccountData(address, height interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) GetCode(address, height interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) GetLogs(branch, address, topics, startBlock, endBlock interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) GetMinorBlockByHash(blockHash, branch interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) GetMinorBlockByHeight(height, branch interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) GetMinorBlockHeaders(request interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) GetMinorBlocks(request interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) GetShardMaskList() *gomock.Call + func (mr *MockISlaveConnMockRecorder) GetSlaveID() *gomock.Call + func (mr *MockISlaveConnMockRecorder) GetStorageAt(address, key, height interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) GetTransactionByHash(txHash, branch interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) GetTransactionReceipt(txHash, branch interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) GetTransactionsByAddress(address, start, limit interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) GetUnconfirmedHeaders() *gomock.Call + func (mr *MockISlaveConnMockRecorder) GetWork(branch interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) HandleNewMinorBlock(request interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) HandleNewTip(request interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) HasShard(fullShardID interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) HeartBeat() *gomock.Call + func (mr *MockISlaveConnMockRecorder) MasterInfo(ip, port, rootTip interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) SendMiningConfigToSlaves(artificialTxConfig, mining interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) SendPing() *gomock.Call + func (mr *MockISlaveConnMockRecorder) SetMining(mining interface{}) *gomock.Call + func (mr *MockISlaveConnMockRecorder) SubmitWork(work interface{}) *gomock.Call + type MockShardConnForP2P struct + func NewMockShardConnForP2P(ctrl *gomock.Controller) *MockShardConnForP2P + func (m *MockShardConnForP2P) AddBlockListForSync(request *rpc.AddBlockListForSyncRequest) (*rpc.ShardStatus, error) + func (m *MockShardConnForP2P) AddTransactions(request *p2p.NewTransactionList) (*rpc.HashList, error) + func (m *MockShardConnForP2P) EXPECT() *MockShardConnForP2PMockRecorder + func (m *MockShardConnForP2P) GetMinorBlockHeaders(request *p2p.GetMinorBlockHeaderListRequest) (*p2p.GetMinorBlockHeaderListResponse, error) + func (m *MockShardConnForP2P) GetMinorBlocks(request *rpc.GetMinorBlockListRequest) (*p2p.GetMinorBlockListResponse, error) + func (m *MockShardConnForP2P) HandleNewMinorBlock(request *p2p.NewBlockMinor) (bool, error) + func (m *MockShardConnForP2P) HandleNewTip(request *rpc.HandleNewTipRequest) (bool, error) + type MockShardConnForP2PMockRecorder struct + func (mr *MockShardConnForP2PMockRecorder) AddBlockListForSync(request interface{}) *gomock.Call + func (mr *MockShardConnForP2PMockRecorder) AddTransactions(request interface{}) *gomock.Call + func (mr *MockShardConnForP2PMockRecorder) GetMinorBlockHeaders(request interface{}) *gomock.Call + func (mr *MockShardConnForP2PMockRecorder) GetMinorBlocks(request interface{}) *gomock.Call + func (mr *MockShardConnForP2PMockRecorder) HandleNewMinorBlock(request interface{}) *gomock.Call + func (mr *MockShardConnForP2PMockRecorder) HandleNewTip(request interface{}) *gomock.Call