Documentation ¶
Overview ¶
Package mock_work is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockBackend
- func (m *MockBackend) AccountManager() accounts.AccountManager
- func (m *MockBackend) BlockChain() work.BlockChain
- func (m *MockBackend) ChainDB() database.DBManager
- func (m *MockBackend) EXPECT() *MockBackendMockRecorder
- func (m *MockBackend) ReBroadcastTxs(transactions types.Transactions)
- func (m *MockBackend) TxPool() work.TxPool
- type MockBackendMockRecorder
- func (mr *MockBackendMockRecorder) AccountManager() *gomock.Call
- func (mr *MockBackendMockRecorder) BlockChain() *gomock.Call
- func (mr *MockBackendMockRecorder) ChainDB() *gomock.Call
- func (mr *MockBackendMockRecorder) ReBroadcastTxs(transactions interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) TxPool() *gomock.Call
- type MockBlockChain
- func (m *MockBlockChain) ApplyTransaction(config *params.ChainConfig, author *common.Address, statedb *state.StateDB, ...) (*types.Receipt, uint64, *vm.InternalTxTrace, error)
- func (m *MockBlockChain) BadBlocks() ([]blockchain.BadBlockArgs, error)
- func (m *MockBlockChain) BlockSubscriptionLoop(pool *blockchain.TxPool)
- func (m *MockBlockChain) CloseBlockSubscriptionLoop()
- func (m *MockBlockChain) Config() *params.ChainConfig
- func (m *MockBlockChain) ContractCode(arg0 common.Hash) ([]byte, error)
- func (m *MockBlockChain) ContractCodeWithPrefix(arg0 common.Hash) ([]byte, error)
- func (m *MockBlockChain) CurrentBlock() *types.Block
- func (m *MockBlockChain) CurrentFastBlock() *types.Block
- func (m *MockBlockChain) CurrentHeader() *types.Header
- func (m *MockBlockChain) EXPECT() *MockBlockChainMockRecorder
- func (m *MockBlockChain) Engine() consensus.Engine
- func (m *MockBlockChain) Export(w io.Writer) error
- func (m *MockBlockChain) FastSyncCommitHead(hash common.Hash) error
- func (m *MockBlockChain) Genesis() *types.Block
- func (m *MockBlockChain) GetBlock(hash common.Hash, number uint64) *types.Block
- func (m *MockBlockChain) GetBlockByHash(hash common.Hash) *types.Block
- func (m *MockBlockChain) GetBlockByNumber(number uint64) *types.Block
- func (m *MockBlockChain) GetBlockHashesFromHash(hash common.Hash, max uint64) []common.Hash
- func (m *MockBlockChain) GetBlockReceiptsInCache(blockHash common.Hash) types.Receipts
- func (m *MockBlockChain) GetBodyRLP(hash common.Hash) rlp.RawValue
- func (m *MockBlockChain) GetContractStorageRoot(block *types.Block, db state.Database, contractAddr common.Address) (common.Hash, error)
- func (m *MockBlockChain) GetHeader(hash common.Hash, number uint64) *types.Header
- func (m *MockBlockChain) GetHeaderByHash(hash common.Hash) *types.Header
- func (m *MockBlockChain) GetHeaderByNumber(number uint64) *types.Header
- func (m *MockBlockChain) GetLogsByHash(hash common.Hash) [][]*types.Log
- func (m *MockBlockChain) GetReceiptsByBlockHash(blockHash common.Hash) types.Receipts
- func (m *MockBlockChain) GetTd(hash common.Hash, number uint64) *big.Int
- func (m *MockBlockChain) GetTdByHash(hash common.Hash) *big.Int
- func (m *MockBlockChain) GetTxAndLookupInfo(txHash common.Hash) (*types.Transaction, common.Hash, uint64, uint64)
- func (m *MockBlockChain) GetTxAndLookupInfoInCache(hash common.Hash) (*types.Transaction, common.Hash, uint64, uint64)
- func (m *MockBlockChain) GetTxLookupInfoAndReceipt(txHash common.Hash) (*types.Transaction, common.Hash, uint64, uint64, *types.Receipt)
- func (m *MockBlockChain) GetTxLookupInfoAndReceiptInCache(txHash common.Hash) (*types.Transaction, common.Hash, uint64, uint64, *types.Receipt)
- func (m *MockBlockChain) HasBadBlock(hash common.Hash) bool
- func (m *MockBlockChain) HasBlock(hash common.Hash, number uint64) bool
- func (m *MockBlockChain) HasHeader(hash common.Hash, number uint64) bool
- func (m *MockBlockChain) InsertChain(chain types.Blocks) (int, error)
- func (m *MockBlockChain) InsertHeaderChain(chain []*types.Header, checkFreq int) (int, error)
- func (m *MockBlockChain) InsertReceiptChain(blockChain types.Blocks, receiptChain []types.Receipts) (int, error)
- func (m *MockBlockChain) IsParallelDBWrite() bool
- func (m *MockBlockChain) IsSenderTxHashIndexingEnabled() bool
- func (m *MockBlockChain) PostChainEvents(events []interface{}, logs []*types.Log)
- func (m *MockBlockChain) PrepareStateMigration() error
- func (m *MockBlockChain) Processor() blockchain.Processor
- func (m *MockBlockChain) ResetWithGenesisBlock(gb *types.Block) error
- func (m *MockBlockChain) Rollback(chain []common.Hash)
- func (m *MockBlockChain) SaveTrieNodeCacheToDisk() error
- func (m *MockBlockChain) SetBaseFeeDenominator(val uint64)
- func (m *MockBlockChain) SetGasTarget(val uint64)
- func (m *MockBlockChain) SetHead(head uint64) error
- func (m *MockBlockChain) SetLowerBoundBaseFee(val uint64)
- func (m *MockBlockChain) SetMaxBlockGasUsedForBaseFee(val uint64)
- func (m *MockBlockChain) SetProposerPolicy(val uint64)
- func (m *MockBlockChain) SetUpperBoundBaseFee(val uint64)
- func (m *MockBlockChain) SetUseGiniCoeff(val bool)
- func (m *MockBlockChain) Snapshots() *snapshot.Tree
- func (m *MockBlockChain) StartCollectingTrieStats(contractAddr common.Address) error
- func (m *MockBlockChain) StartContractWarmUp(contractAddr common.Address) error
- func (m *MockBlockChain) StartStateMigration(arg0 uint64, arg1 common.Hash) error
- func (m *MockBlockChain) StartWarmUp() error
- func (m *MockBlockChain) State() (*state.StateDB, error)
- func (m *MockBlockChain) StateAt(root common.Hash) (*state.StateDB, error)
- func (m *MockBlockChain) StateAtWithGCLock(root common.Hash) (*state.StateDB, error)
- func (m *MockBlockChain) StateAtWithPersistent(root common.Hash) (*state.StateDB, error)
- func (m *MockBlockChain) StateCache() state.Database
- func (m *MockBlockChain) StateMigrationStatus() (bool, uint64, int, int, int, float64, error)
- func (m *MockBlockChain) Stop()
- func (m *MockBlockChain) StopStateMigration() error
- func (m *MockBlockChain) StopWarmUp() error
- func (m *MockBlockChain) SubscribeChainEvent(ch chan<- blockchain.ChainEvent) event.Subscription
- func (m *MockBlockChain) SubscribeChainHeadEvent(ch chan<- blockchain.ChainHeadEvent) event.Subscription
- func (m *MockBlockChain) SubscribeChainSideEvent(ch chan<- blockchain.ChainSideEvent) event.Subscription
- func (m *MockBlockChain) SubscribeLogsEvent(ch chan<- []*types.Log) event.Subscription
- func (m *MockBlockChain) SubscribeRemovedLogsEvent(ch chan<- blockchain.RemovedLogsEvent) event.Subscription
- func (m *MockBlockChain) TrieNode(hash common.Hash) ([]byte, error)
- func (m *MockBlockChain) Validator() blockchain.Validator
- func (m *MockBlockChain) WriteBlockWithState(block *types.Block, receipts []*types.Receipt, stateDB *state.StateDB) (blockchain.WriteResult, error)
- type MockBlockChainMockRecorder
- func (mr *MockBlockChainMockRecorder) ApplyTransaction(config, author, statedb, header, tx, usedGas, cfg interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) BadBlocks() *gomock.Call
- func (mr *MockBlockChainMockRecorder) BlockSubscriptionLoop(pool interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) CloseBlockSubscriptionLoop() *gomock.Call
- func (mr *MockBlockChainMockRecorder) Config() *gomock.Call
- func (mr *MockBlockChainMockRecorder) ContractCode(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) ContractCodeWithPrefix(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) CurrentBlock() *gomock.Call
- func (mr *MockBlockChainMockRecorder) CurrentFastBlock() *gomock.Call
- func (mr *MockBlockChainMockRecorder) CurrentHeader() *gomock.Call
- func (mr *MockBlockChainMockRecorder) Engine() *gomock.Call
- func (mr *MockBlockChainMockRecorder) Export(w interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) FastSyncCommitHead(hash interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) Genesis() *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetBlock(hash, number interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetBlockByHash(hash interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetBlockByNumber(number interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetBlockHashesFromHash(hash, max interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetBlockReceiptsInCache(blockHash interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetBodyRLP(hash interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetContractStorageRoot(block, db, contractAddr interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetHeader(hash, number interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetHeaderByHash(hash interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetHeaderByNumber(number interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetLogsByHash(hash interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetReceiptsByBlockHash(blockHash interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetTd(hash, number interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetTdByHash(hash interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetTxAndLookupInfo(txHash interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetTxAndLookupInfoInCache(hash interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetTxLookupInfoAndReceipt(txHash interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetTxLookupInfoAndReceiptInCache(txHash interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) HasBadBlock(hash interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) HasBlock(hash, number interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) HasHeader(hash, number interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) InsertChain(chain interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) InsertHeaderChain(chain, checkFreq interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) InsertReceiptChain(blockChain, receiptChain interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) IsParallelDBWrite() *gomock.Call
- func (mr *MockBlockChainMockRecorder) IsSenderTxHashIndexingEnabled() *gomock.Call
- func (mr *MockBlockChainMockRecorder) PostChainEvents(events, logs interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) PrepareStateMigration() *gomock.Call
- func (mr *MockBlockChainMockRecorder) Processor() *gomock.Call
- func (mr *MockBlockChainMockRecorder) ResetWithGenesisBlock(gb interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) Rollback(chain interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) SaveTrieNodeCacheToDisk() *gomock.Call
- func (mr *MockBlockChainMockRecorder) SetBaseFeeDenominator(val interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) SetGasTarget(val interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) SetHead(head interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) SetLowerBoundBaseFee(val interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) SetMaxBlockGasUsedForBaseFee(val interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) SetProposerPolicy(val interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) SetUpperBoundBaseFee(val interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) SetUseGiniCoeff(val interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) Snapshots() *gomock.Call
- func (mr *MockBlockChainMockRecorder) StartCollectingTrieStats(contractAddr interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) StartContractWarmUp(contractAddr interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) StartStateMigration(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) StartWarmUp() *gomock.Call
- func (mr *MockBlockChainMockRecorder) State() *gomock.Call
- func (mr *MockBlockChainMockRecorder) StateAt(root interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) StateAtWithGCLock(root interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) StateAtWithPersistent(root interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) StateCache() *gomock.Call
- func (mr *MockBlockChainMockRecorder) StateMigrationStatus() *gomock.Call
- func (mr *MockBlockChainMockRecorder) Stop() *gomock.Call
- func (mr *MockBlockChainMockRecorder) StopStateMigration() *gomock.Call
- func (mr *MockBlockChainMockRecorder) StopWarmUp() *gomock.Call
- func (mr *MockBlockChainMockRecorder) SubscribeChainEvent(ch interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) SubscribeChainHeadEvent(ch interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) SubscribeChainSideEvent(ch interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) SubscribeLogsEvent(ch interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) SubscribeRemovedLogsEvent(ch interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) TrieNode(hash interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) Validator() *gomock.Call
- func (mr *MockBlockChainMockRecorder) WriteBlockWithState(block, receipts, stateDB interface{}) *gomock.Call
- type MockTxPool
- func (m *MockTxPool) AddLocal(arg0 *types.Transaction) error
- func (m *MockTxPool) CachedPendingTxsByCount(arg0 int) types.Transactions
- func (m *MockTxPool) Content() (map[common.Address]types.Transactions, map[common.Address]types.Transactions)
- func (m *MockTxPool) EXPECT() *MockTxPoolMockRecorder
- func (m *MockTxPool) GasPrice() *big.Int
- func (m *MockTxPool) Get(arg0 common.Hash) *types.Transaction
- func (m *MockTxPool) GetPendingNonce(arg0 common.Address) uint64
- func (m *MockTxPool) HandleTxMsg(arg0 types.Transactions)
- func (m *MockTxPool) Pending() (map[common.Address]types.Transactions, error)
- func (m *MockTxPool) SetGasPrice(arg0 *big.Int)
- func (m *MockTxPool) StartSpamThrottler(arg0 *blockchain.ThrottlerConfig) error
- func (m *MockTxPool) Stats() (int, int)
- func (m *MockTxPool) Stop()
- func (m *MockTxPool) StopSpamThrottler()
- func (m *MockTxPool) SubscribeNewTxsEvent(arg0 chan<- blockchain.NewTxsEvent) event.Subscription
- type MockTxPoolMockRecorder
- func (mr *MockTxPoolMockRecorder) AddLocal(arg0 interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) CachedPendingTxsByCount(arg0 interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) Content() *gomock.Call
- func (mr *MockTxPoolMockRecorder) GasPrice() *gomock.Call
- func (mr *MockTxPoolMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) GetPendingNonce(arg0 interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) HandleTxMsg(arg0 interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) Pending() *gomock.Call
- func (mr *MockTxPoolMockRecorder) SetGasPrice(arg0 interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) StartSpamThrottler(arg0 interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) Stats() *gomock.Call
- func (mr *MockTxPoolMockRecorder) Stop() *gomock.Call
- func (mr *MockTxPoolMockRecorder) StopSpamThrottler() *gomock.Call
- func (mr *MockTxPoolMockRecorder) SubscribeNewTxsEvent(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBackend ¶ added in v1.9.0
type MockBackend struct {
// contains filtered or unexported fields
}
MockBackend is a mock of Backend interface.
func NewMockBackend ¶ added in v1.9.0
func NewMockBackend(ctrl *gomock.Controller) *MockBackend
NewMockBackend creates a new mock instance.
func (*MockBackend) AccountManager ¶ added in v1.9.0
func (m *MockBackend) AccountManager() accounts.AccountManager
AccountManager mocks base method.
func (*MockBackend) BlockChain ¶ added in v1.9.0
func (m *MockBackend) BlockChain() work.BlockChain
BlockChain mocks base method.
func (*MockBackend) ChainDB ¶ added in v1.9.0
func (m *MockBackend) ChainDB() database.DBManager
ChainDB mocks base method.
func (*MockBackend) EXPECT ¶ added in v1.9.0
func (m *MockBackend) EXPECT() *MockBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBackend) ReBroadcastTxs ¶ added in v1.9.0
func (m *MockBackend) ReBroadcastTxs(transactions types.Transactions)
ReBroadcastTxs mocks base method.
func (*MockBackend) TxPool ¶ added in v1.9.0
func (m *MockBackend) TxPool() work.TxPool
TxPool mocks base method.
type MockBackendMockRecorder ¶ added in v1.9.0
type MockBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockBackendMockRecorder is the mock recorder for MockBackend.
func (*MockBackendMockRecorder) AccountManager ¶ added in v1.9.0
func (mr *MockBackendMockRecorder) AccountManager() *gomock.Call
AccountManager indicates an expected call of AccountManager.
func (*MockBackendMockRecorder) BlockChain ¶ added in v1.9.0
func (mr *MockBackendMockRecorder) BlockChain() *gomock.Call
BlockChain indicates an expected call of BlockChain.
func (*MockBackendMockRecorder) ChainDB ¶ added in v1.9.0
func (mr *MockBackendMockRecorder) ChainDB() *gomock.Call
ChainDB indicates an expected call of ChainDB.
func (*MockBackendMockRecorder) ReBroadcastTxs ¶ added in v1.9.0
func (mr *MockBackendMockRecorder) ReBroadcastTxs(transactions interface{}) *gomock.Call
ReBroadcastTxs indicates an expected call of ReBroadcastTxs.
func (*MockBackendMockRecorder) TxPool ¶ added in v1.9.0
func (mr *MockBackendMockRecorder) TxPool() *gomock.Call
TxPool indicates an expected call of TxPool.
type MockBlockChain ¶
type MockBlockChain struct {
// contains filtered or unexported fields
}
MockBlockChain is a mock of BlockChain interface.
func NewMockBlockChain ¶
func NewMockBlockChain(ctrl *gomock.Controller) *MockBlockChain
NewMockBlockChain creates a new mock instance.
func (*MockBlockChain) ApplyTransaction ¶
func (m *MockBlockChain) ApplyTransaction(config *params.ChainConfig, author *common.Address, statedb *state.StateDB, header *types.Header, tx *types.Transaction, usedGas *uint64, cfg *vm.Config) (*types.Receipt, uint64, *vm.InternalTxTrace, error)
ApplyTransaction mocks base method.
func (*MockBlockChain) BadBlocks ¶
func (m *MockBlockChain) BadBlocks() ([]blockchain.BadBlockArgs, error)
BadBlocks mocks base method.
func (*MockBlockChain) BlockSubscriptionLoop ¶ added in v1.5.3
func (m *MockBlockChain) BlockSubscriptionLoop(pool *blockchain.TxPool)
BlockSubscriptionLoop mocks base method.
func (*MockBlockChain) CloseBlockSubscriptionLoop ¶ added in v1.5.3
func (m *MockBlockChain) CloseBlockSubscriptionLoop()
CloseBlockSubscriptionLoop mocks base method.
func (*MockBlockChain) Config ¶
func (m *MockBlockChain) Config() *params.ChainConfig
Config mocks base method.
func (*MockBlockChain) ContractCode ¶ added in v1.9.0
func (m *MockBlockChain) ContractCode(arg0 common.Hash) ([]byte, error)
ContractCode mocks base method
func (*MockBlockChain) ContractCodeWithPrefix ¶ added in v1.9.0
func (m *MockBlockChain) ContractCodeWithPrefix(arg0 common.Hash) ([]byte, error)
ContractCodeWithPrefix mocks base method
func (*MockBlockChain) CurrentBlock ¶
func (m *MockBlockChain) CurrentBlock() *types.Block
CurrentBlock mocks base method
func (*MockBlockChain) CurrentFastBlock ¶
func (m *MockBlockChain) CurrentFastBlock() *types.Block
CurrentFastBlock mocks base method.
func (*MockBlockChain) CurrentHeader ¶
func (m *MockBlockChain) CurrentHeader() *types.Header
CurrentHeader mocks base method.
func (*MockBlockChain) EXPECT ¶
func (m *MockBlockChain) EXPECT() *MockBlockChainMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBlockChain) Engine ¶
func (m *MockBlockChain) Engine() consensus.Engine
Engine mocks base method.
func (*MockBlockChain) Export ¶
func (m *MockBlockChain) Export(w io.Writer) error
Export mocks base method.
func (*MockBlockChain) FastSyncCommitHead ¶
func (m *MockBlockChain) FastSyncCommitHead(hash common.Hash) error
FastSyncCommitHead mocks base method.
func (*MockBlockChain) Genesis ¶
func (m *MockBlockChain) Genesis() *types.Block
Genesis mocks base method.
func (*MockBlockChain) GetBlockByHash ¶
func (m *MockBlockChain) GetBlockByHash(hash common.Hash) *types.Block
GetBlockByHash mocks base method.
func (*MockBlockChain) GetBlockByNumber ¶
func (m *MockBlockChain) GetBlockByNumber(number uint64) *types.Block
GetBlockByNumber mocks base method.
func (*MockBlockChain) GetBlockHashesFromHash ¶
GetBlockHashesFromHash mocks base method.
func (*MockBlockChain) GetBlockReceiptsInCache ¶
func (m *MockBlockChain) GetBlockReceiptsInCache(blockHash common.Hash) types.Receipts
GetBlockReceiptsInCache mocks base method.
func (*MockBlockChain) GetBodyRLP ¶
func (m *MockBlockChain) GetBodyRLP(hash common.Hash) rlp.RawValue
GetBodyRLP mocks base method.
func (*MockBlockChain) GetContractStorageRoot ¶ added in v1.6.0
func (m *MockBlockChain) GetContractStorageRoot(block *types.Block, db state.Database, contractAddr common.Address) (common.Hash, error)
GetContractStorageRoot mocks base method.
func (*MockBlockChain) GetHeaderByHash ¶
func (m *MockBlockChain) GetHeaderByHash(hash common.Hash) *types.Header
GetHeaderByHash mocks base method.
func (*MockBlockChain) GetHeaderByNumber ¶
func (m *MockBlockChain) GetHeaderByNumber(number uint64) *types.Header
GetHeaderByNumber mocks base method.
func (*MockBlockChain) GetLogsByHash ¶
func (m *MockBlockChain) GetLogsByHash(hash common.Hash) [][]*types.Log
GetLogsByHash mocks base method.
func (*MockBlockChain) GetReceiptsByBlockHash ¶
func (m *MockBlockChain) GetReceiptsByBlockHash(blockHash common.Hash) types.Receipts
GetReceiptsByBlockHash mocks base method.
func (*MockBlockChain) GetTdByHash ¶
func (m *MockBlockChain) GetTdByHash(hash common.Hash) *big.Int
GetTdByHash mocks base method.
func (*MockBlockChain) GetTxAndLookupInfo ¶
func (m *MockBlockChain) GetTxAndLookupInfo(txHash common.Hash) (*types.Transaction, common.Hash, uint64, uint64)
GetTxAndLookupInfo mocks base method.
func (*MockBlockChain) GetTxAndLookupInfoInCache ¶
func (m *MockBlockChain) GetTxAndLookupInfoInCache(hash common.Hash) (*types.Transaction, common.Hash, uint64, uint64)
GetTxAndLookupInfoInCache mocks base method.
func (*MockBlockChain) GetTxLookupInfoAndReceipt ¶
func (m *MockBlockChain) GetTxLookupInfoAndReceipt(txHash common.Hash) (*types.Transaction, common.Hash, uint64, uint64, *types.Receipt)
GetTxLookupInfoAndReceipt mocks base method.
func (*MockBlockChain) GetTxLookupInfoAndReceiptInCache ¶
func (m *MockBlockChain) GetTxLookupInfoAndReceiptInCache(txHash common.Hash) (*types.Transaction, common.Hash, uint64, uint64, *types.Receipt)
GetTxLookupInfoAndReceiptInCache mocks base method.
func (*MockBlockChain) HasBadBlock ¶
func (m *MockBlockChain) HasBadBlock(hash common.Hash) bool
HasBadBlock mocks base method.
func (*MockBlockChain) HasBlock ¶
func (m *MockBlockChain) HasBlock(hash common.Hash, number uint64) bool
HasBlock mocks base method.
func (*MockBlockChain) HasHeader ¶
func (m *MockBlockChain) HasHeader(hash common.Hash, number uint64) bool
HasHeader mocks base method.
func (*MockBlockChain) InsertChain ¶
func (m *MockBlockChain) InsertChain(chain types.Blocks) (int, error)
InsertChain mocks base method.
func (*MockBlockChain) InsertHeaderChain ¶
InsertHeaderChain mocks base method.
func (*MockBlockChain) InsertReceiptChain ¶
func (m *MockBlockChain) InsertReceiptChain(blockChain types.Blocks, receiptChain []types.Receipts) (int, error)
InsertReceiptChain mocks base method.
func (*MockBlockChain) IsParallelDBWrite ¶
func (m *MockBlockChain) IsParallelDBWrite() bool
IsParallelDBWrite mocks base method.
func (*MockBlockChain) IsSenderTxHashIndexingEnabled ¶
func (m *MockBlockChain) IsSenderTxHashIndexingEnabled() bool
IsSenderTxHashIndexingEnabled mocks base method.
func (*MockBlockChain) PostChainEvents ¶
func (m *MockBlockChain) PostChainEvents(events []interface{}, logs []*types.Log)
PostChainEvents mocks base method.
func (*MockBlockChain) PrepareStateMigration ¶ added in v1.5.0
func (m *MockBlockChain) PrepareStateMigration() error
PrepareStateMigration mocks base method.
func (*MockBlockChain) Processor ¶
func (m *MockBlockChain) Processor() blockchain.Processor
Processor mocks base method.
func (*MockBlockChain) ResetWithGenesisBlock ¶
func (m *MockBlockChain) ResetWithGenesisBlock(gb *types.Block) error
ResetWithGenesisBlock mocks base method.
func (*MockBlockChain) Rollback ¶
func (m *MockBlockChain) Rollback(chain []common.Hash)
Rollback mocks base method.
func (*MockBlockChain) SaveTrieNodeCacheToDisk ¶ added in v1.5.3
func (m *MockBlockChain) SaveTrieNodeCacheToDisk() error
SaveTrieNodeCacheToDisk mocks base method.
func (*MockBlockChain) SetBaseFeeDenominator ¶ added in v1.9.0
func (m *MockBlockChain) SetBaseFeeDenominator(val uint64)
SetBaseFeeDenominator mocks base method.
func (*MockBlockChain) SetGasTarget ¶ added in v1.9.0
func (m *MockBlockChain) SetGasTarget(val uint64)
SetGasTarget mocks base method.
func (*MockBlockChain) SetHead ¶
func (m *MockBlockChain) SetHead(head uint64) error
SetHead mocks base method.
func (*MockBlockChain) SetLowerBoundBaseFee ¶ added in v1.9.0
func (m *MockBlockChain) SetLowerBoundBaseFee(val uint64)
SetLowerBoundBaseFee mocks base method.
func (*MockBlockChain) SetMaxBlockGasUsedForBaseFee ¶ added in v1.9.0
func (m *MockBlockChain) SetMaxBlockGasUsedForBaseFee(val uint64)
SetMaxBlockGasUsedForBaseFee mocks base method.
func (*MockBlockChain) SetProposerPolicy ¶
func (m *MockBlockChain) SetProposerPolicy(val uint64)
SetProposerPolicy mocks base method.
func (*MockBlockChain) SetUpperBoundBaseFee ¶ added in v1.9.0
func (m *MockBlockChain) SetUpperBoundBaseFee(val uint64)
SetUpperBoundBaseFee mocks base method.
func (*MockBlockChain) SetUseGiniCoeff ¶
func (m *MockBlockChain) SetUseGiniCoeff(val bool)
SetUseGiniCoeff mocks base method.
func (*MockBlockChain) Snapshots ¶ added in v1.9.0
func (m *MockBlockChain) Snapshots() *snapshot.Tree
Snapshots mocks base method.
func (*MockBlockChain) StartCollectingTrieStats ¶ added in v1.6.0
func (m *MockBlockChain) StartCollectingTrieStats(contractAddr common.Address) error
StartCollectingTrieStats mocks base method.
func (*MockBlockChain) StartContractWarmUp ¶ added in v1.6.0
func (m *MockBlockChain) StartContractWarmUp(contractAddr common.Address) error
StartContractWarmUp mocks base method.
func (*MockBlockChain) StartStateMigration ¶ added in v1.5.0
func (m *MockBlockChain) StartStateMigration(arg0 uint64, arg1 common.Hash) error
StartStateMigration mocks base method.
func (*MockBlockChain) StartWarmUp ¶ added in v1.5.0
func (m *MockBlockChain) StartWarmUp() error
StartWarmUp mocks base method.
func (*MockBlockChain) State ¶
func (m *MockBlockChain) State() (*state.StateDB, error)
State mocks base method.
func (*MockBlockChain) StateAtWithGCLock ¶ added in v1.4.0
StateAtWithGCLock mocks base method.
func (*MockBlockChain) StateAtWithPersistent ¶ added in v1.5.0
StateAtWithPersistent mocks base method.
func (*MockBlockChain) StateCache ¶
func (m *MockBlockChain) StateCache() state.Database
StateCache mocks base method.
func (*MockBlockChain) StateMigrationStatus ¶ added in v1.5.0
StateMigrationStatus mocks base method.
func (*MockBlockChain) StopStateMigration ¶ added in v1.5.0
func (m *MockBlockChain) StopStateMigration() error
StopStateMigration mocks base method.
func (*MockBlockChain) StopWarmUp ¶ added in v1.5.0
func (m *MockBlockChain) StopWarmUp() error
StopWarmUp mocks base method.
func (*MockBlockChain) SubscribeChainEvent ¶
func (m *MockBlockChain) SubscribeChainEvent(ch chan<- blockchain.ChainEvent) event.Subscription
SubscribeChainEvent mocks base method.
func (*MockBlockChain) SubscribeChainHeadEvent ¶
func (m *MockBlockChain) SubscribeChainHeadEvent(ch chan<- blockchain.ChainHeadEvent) event.Subscription
SubscribeChainHeadEvent mocks base method.
func (*MockBlockChain) SubscribeChainSideEvent ¶
func (m *MockBlockChain) SubscribeChainSideEvent(ch chan<- blockchain.ChainSideEvent) event.Subscription
SubscribeChainSideEvent mocks base method.
func (*MockBlockChain) SubscribeLogsEvent ¶
func (m *MockBlockChain) SubscribeLogsEvent(ch chan<- []*types.Log) event.Subscription
SubscribeLogsEvent mocks base method.
func (*MockBlockChain) SubscribeRemovedLogsEvent ¶
func (m *MockBlockChain) SubscribeRemovedLogsEvent(ch chan<- blockchain.RemovedLogsEvent) event.Subscription
SubscribeRemovedLogsEvent mocks base method.
func (*MockBlockChain) TrieNode ¶
func (m *MockBlockChain) TrieNode(hash common.Hash) ([]byte, error)
TrieNode mocks base method.
func (*MockBlockChain) Validator ¶
func (m *MockBlockChain) Validator() blockchain.Validator
Validator mocks base method.
func (*MockBlockChain) WriteBlockWithState ¶
func (m *MockBlockChain) WriteBlockWithState(block *types.Block, receipts []*types.Receipt, stateDB *state.StateDB) (blockchain.WriteResult, error)
WriteBlockWithState mocks base method.
type MockBlockChainMockRecorder ¶
type MockBlockChainMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockChainMockRecorder is the mock recorder for MockBlockChain.
func (*MockBlockChainMockRecorder) ApplyTransaction ¶
func (mr *MockBlockChainMockRecorder) ApplyTransaction(config, author, statedb, header, tx, usedGas, cfg interface{}) *gomock.Call
ApplyTransaction indicates an expected call of ApplyTransaction.
func (*MockBlockChainMockRecorder) BadBlocks ¶
func (mr *MockBlockChainMockRecorder) BadBlocks() *gomock.Call
BadBlocks indicates an expected call of BadBlocks.
func (*MockBlockChainMockRecorder) BlockSubscriptionLoop ¶ added in v1.5.3
func (mr *MockBlockChainMockRecorder) BlockSubscriptionLoop(pool interface{}) *gomock.Call
BlockSubscriptionLoop indicates an expected call of BlockSubscriptionLoop.
func (*MockBlockChainMockRecorder) CloseBlockSubscriptionLoop ¶ added in v1.5.3
func (mr *MockBlockChainMockRecorder) CloseBlockSubscriptionLoop() *gomock.Call
CloseBlockSubscriptionLoop indicates an expected call of CloseBlockSubscriptionLoop.
func (*MockBlockChainMockRecorder) Config ¶
func (mr *MockBlockChainMockRecorder) Config() *gomock.Call
Config indicates an expected call of Config.
func (*MockBlockChainMockRecorder) ContractCode ¶ added in v1.9.0
func (mr *MockBlockChainMockRecorder) ContractCode(arg0 interface{}) *gomock.Call
ContractCode indicates an expected call of ContractCode
func (*MockBlockChainMockRecorder) ContractCodeWithPrefix ¶ added in v1.9.0
func (mr *MockBlockChainMockRecorder) ContractCodeWithPrefix(arg0 interface{}) *gomock.Call
ContractCodeWithPrefix indicates an expected call of ContractCodeWithPrefix
func (*MockBlockChainMockRecorder) CurrentBlock ¶
func (mr *MockBlockChainMockRecorder) CurrentBlock() *gomock.Call
CurrentBlock indicates an expected call of CurrentBlock.
func (*MockBlockChainMockRecorder) CurrentFastBlock ¶
func (mr *MockBlockChainMockRecorder) CurrentFastBlock() *gomock.Call
CurrentFastBlock indicates an expected call of CurrentFastBlock.
func (*MockBlockChainMockRecorder) CurrentHeader ¶
func (mr *MockBlockChainMockRecorder) CurrentHeader() *gomock.Call
CurrentHeader indicates an expected call of CurrentHeader.
func (*MockBlockChainMockRecorder) Engine ¶
func (mr *MockBlockChainMockRecorder) Engine() *gomock.Call
Engine indicates an expected call of Engine.
func (*MockBlockChainMockRecorder) Export ¶
func (mr *MockBlockChainMockRecorder) Export(w interface{}) *gomock.Call
Export indicates an expected call of Export.
func (*MockBlockChainMockRecorder) FastSyncCommitHead ¶
func (mr *MockBlockChainMockRecorder) FastSyncCommitHead(hash interface{}) *gomock.Call
FastSyncCommitHead indicates an expected call of FastSyncCommitHead.
func (*MockBlockChainMockRecorder) Genesis ¶
func (mr *MockBlockChainMockRecorder) Genesis() *gomock.Call
Genesis indicates an expected call of Genesis.
func (*MockBlockChainMockRecorder) GetBlock ¶
func (mr *MockBlockChainMockRecorder) GetBlock(hash, number interface{}) *gomock.Call
GetBlock indicates an expected call of GetBlock.
func (*MockBlockChainMockRecorder) GetBlockByHash ¶
func (mr *MockBlockChainMockRecorder) GetBlockByHash(hash interface{}) *gomock.Call
GetBlockByHash indicates an expected call of GetBlockByHash.
func (*MockBlockChainMockRecorder) GetBlockByNumber ¶
func (mr *MockBlockChainMockRecorder) GetBlockByNumber(number interface{}) *gomock.Call
GetBlockByNumber indicates an expected call of GetBlockByNumber.
func (*MockBlockChainMockRecorder) GetBlockHashesFromHash ¶
func (mr *MockBlockChainMockRecorder) GetBlockHashesFromHash(hash, max interface{}) *gomock.Call
GetBlockHashesFromHash indicates an expected call of GetBlockHashesFromHash.
func (*MockBlockChainMockRecorder) GetBlockReceiptsInCache ¶
func (mr *MockBlockChainMockRecorder) GetBlockReceiptsInCache(blockHash interface{}) *gomock.Call
GetBlockReceiptsInCache indicates an expected call of GetBlockReceiptsInCache.
func (*MockBlockChainMockRecorder) GetBodyRLP ¶
func (mr *MockBlockChainMockRecorder) GetBodyRLP(hash interface{}) *gomock.Call
GetBodyRLP indicates an expected call of GetBodyRLP.
func (*MockBlockChainMockRecorder) GetContractStorageRoot ¶ added in v1.6.0
func (mr *MockBlockChainMockRecorder) GetContractStorageRoot(block, db, contractAddr interface{}) *gomock.Call
GetContractStorageRoot indicates an expected call of GetContractStorageRoot.
func (*MockBlockChainMockRecorder) GetHeader ¶
func (mr *MockBlockChainMockRecorder) GetHeader(hash, number interface{}) *gomock.Call
GetHeader indicates an expected call of GetHeader.
func (*MockBlockChainMockRecorder) GetHeaderByHash ¶
func (mr *MockBlockChainMockRecorder) GetHeaderByHash(hash interface{}) *gomock.Call
GetHeaderByHash indicates an expected call of GetHeaderByHash.
func (*MockBlockChainMockRecorder) GetHeaderByNumber ¶
func (mr *MockBlockChainMockRecorder) GetHeaderByNumber(number interface{}) *gomock.Call
GetHeaderByNumber indicates an expected call of GetHeaderByNumber.
func (*MockBlockChainMockRecorder) GetLogsByHash ¶
func (mr *MockBlockChainMockRecorder) GetLogsByHash(hash interface{}) *gomock.Call
GetLogsByHash indicates an expected call of GetLogsByHash.
func (*MockBlockChainMockRecorder) GetReceiptsByBlockHash ¶
func (mr *MockBlockChainMockRecorder) GetReceiptsByBlockHash(blockHash interface{}) *gomock.Call
GetReceiptsByBlockHash indicates an expected call of GetReceiptsByBlockHash.
func (*MockBlockChainMockRecorder) GetTd ¶
func (mr *MockBlockChainMockRecorder) GetTd(hash, number interface{}) *gomock.Call
GetTd indicates an expected call of GetTd.
func (*MockBlockChainMockRecorder) GetTdByHash ¶
func (mr *MockBlockChainMockRecorder) GetTdByHash(hash interface{}) *gomock.Call
GetTdByHash indicates an expected call of GetTdByHash.
func (*MockBlockChainMockRecorder) GetTxAndLookupInfo ¶
func (mr *MockBlockChainMockRecorder) GetTxAndLookupInfo(txHash interface{}) *gomock.Call
GetTxAndLookupInfo indicates an expected call of GetTxAndLookupInfo.
func (*MockBlockChainMockRecorder) GetTxAndLookupInfoInCache ¶
func (mr *MockBlockChainMockRecorder) GetTxAndLookupInfoInCache(hash interface{}) *gomock.Call
GetTxAndLookupInfoInCache indicates an expected call of GetTxAndLookupInfoInCache.
func (*MockBlockChainMockRecorder) GetTxLookupInfoAndReceipt ¶
func (mr *MockBlockChainMockRecorder) GetTxLookupInfoAndReceipt(txHash interface{}) *gomock.Call
GetTxLookupInfoAndReceipt indicates an expected call of GetTxLookupInfoAndReceipt.
func (*MockBlockChainMockRecorder) GetTxLookupInfoAndReceiptInCache ¶
func (mr *MockBlockChainMockRecorder) GetTxLookupInfoAndReceiptInCache(txHash interface{}) *gomock.Call
GetTxLookupInfoAndReceiptInCache indicates an expected call of GetTxLookupInfoAndReceiptInCache.
func (*MockBlockChainMockRecorder) HasBadBlock ¶
func (mr *MockBlockChainMockRecorder) HasBadBlock(hash interface{}) *gomock.Call
HasBadBlock indicates an expected call of HasBadBlock.
func (*MockBlockChainMockRecorder) HasBlock ¶
func (mr *MockBlockChainMockRecorder) HasBlock(hash, number interface{}) *gomock.Call
HasBlock indicates an expected call of HasBlock.
func (*MockBlockChainMockRecorder) HasHeader ¶
func (mr *MockBlockChainMockRecorder) HasHeader(hash, number interface{}) *gomock.Call
HasHeader indicates an expected call of HasHeader.
func (*MockBlockChainMockRecorder) InsertChain ¶
func (mr *MockBlockChainMockRecorder) InsertChain(chain interface{}) *gomock.Call
InsertChain indicates an expected call of InsertChain.
func (*MockBlockChainMockRecorder) InsertHeaderChain ¶
func (mr *MockBlockChainMockRecorder) InsertHeaderChain(chain, checkFreq interface{}) *gomock.Call
InsertHeaderChain indicates an expected call of InsertHeaderChain.
func (*MockBlockChainMockRecorder) InsertReceiptChain ¶
func (mr *MockBlockChainMockRecorder) InsertReceiptChain(blockChain, receiptChain interface{}) *gomock.Call
InsertReceiptChain indicates an expected call of InsertReceiptChain.
func (*MockBlockChainMockRecorder) IsParallelDBWrite ¶
func (mr *MockBlockChainMockRecorder) IsParallelDBWrite() *gomock.Call
IsParallelDBWrite indicates an expected call of IsParallelDBWrite.
func (*MockBlockChainMockRecorder) IsSenderTxHashIndexingEnabled ¶
func (mr *MockBlockChainMockRecorder) IsSenderTxHashIndexingEnabled() *gomock.Call
IsSenderTxHashIndexingEnabled indicates an expected call of IsSenderTxHashIndexingEnabled.
func (*MockBlockChainMockRecorder) PostChainEvents ¶
func (mr *MockBlockChainMockRecorder) PostChainEvents(events, logs interface{}) *gomock.Call
PostChainEvents indicates an expected call of PostChainEvents.
func (*MockBlockChainMockRecorder) PrepareStateMigration ¶ added in v1.5.0
func (mr *MockBlockChainMockRecorder) PrepareStateMigration() *gomock.Call
PrepareStateMigration indicates an expected call of PrepareStateMigration.
func (*MockBlockChainMockRecorder) Processor ¶
func (mr *MockBlockChainMockRecorder) Processor() *gomock.Call
Processor indicates an expected call of Processor.
func (*MockBlockChainMockRecorder) ResetWithGenesisBlock ¶
func (mr *MockBlockChainMockRecorder) ResetWithGenesisBlock(gb interface{}) *gomock.Call
ResetWithGenesisBlock indicates an expected call of ResetWithGenesisBlock.
func (*MockBlockChainMockRecorder) Rollback ¶
func (mr *MockBlockChainMockRecorder) Rollback(chain interface{}) *gomock.Call
Rollback indicates an expected call of Rollback.
func (*MockBlockChainMockRecorder) SaveTrieNodeCacheToDisk ¶ added in v1.5.3
func (mr *MockBlockChainMockRecorder) SaveTrieNodeCacheToDisk() *gomock.Call
SaveTrieNodeCacheToDisk indicates an expected call of SaveTrieNodeCacheToDisk.
func (*MockBlockChainMockRecorder) SetBaseFeeDenominator ¶ added in v1.9.0
func (mr *MockBlockChainMockRecorder) SetBaseFeeDenominator(val interface{}) *gomock.Call
SetBaseFeeDenominator indicates an expected call of SetBaseFeeDenominator.
func (*MockBlockChainMockRecorder) SetGasTarget ¶ added in v1.9.0
func (mr *MockBlockChainMockRecorder) SetGasTarget(val interface{}) *gomock.Call
SetGasTarget indicates an expected call of SetGasTarget.
func (*MockBlockChainMockRecorder) SetHead ¶
func (mr *MockBlockChainMockRecorder) SetHead(head interface{}) *gomock.Call
SetHead indicates an expected call of SetHead.
func (*MockBlockChainMockRecorder) SetLowerBoundBaseFee ¶ added in v1.9.0
func (mr *MockBlockChainMockRecorder) SetLowerBoundBaseFee(val interface{}) *gomock.Call
SetLowerBoundBaseFee indicates an expected call of SetLowerBoundBaseFee.
func (*MockBlockChainMockRecorder) SetMaxBlockGasUsedForBaseFee ¶ added in v1.9.0
func (mr *MockBlockChainMockRecorder) SetMaxBlockGasUsedForBaseFee(val interface{}) *gomock.Call
SetMaxBlockGasUsedForBaseFee indicates an expected call of SetMaxBlockGasUsedForBaseFee.
func (*MockBlockChainMockRecorder) SetProposerPolicy ¶
func (mr *MockBlockChainMockRecorder) SetProposerPolicy(val interface{}) *gomock.Call
SetProposerPolicy indicates an expected call of SetProposerPolicy.
func (*MockBlockChainMockRecorder) SetUpperBoundBaseFee ¶ added in v1.9.0
func (mr *MockBlockChainMockRecorder) SetUpperBoundBaseFee(val interface{}) *gomock.Call
SetUpperBoundBaseFee indicates an expected call of SetUpperBoundBaseFee.
func (*MockBlockChainMockRecorder) SetUseGiniCoeff ¶
func (mr *MockBlockChainMockRecorder) SetUseGiniCoeff(val interface{}) *gomock.Call
SetUseGiniCoeff indicates an expected call of SetUseGiniCoeff.
func (*MockBlockChainMockRecorder) Snapshots ¶ added in v1.9.0
func (mr *MockBlockChainMockRecorder) Snapshots() *gomock.Call
Snapshots indicates an expected call of Snapshots.
func (*MockBlockChainMockRecorder) StartCollectingTrieStats ¶ added in v1.6.0
func (mr *MockBlockChainMockRecorder) StartCollectingTrieStats(contractAddr interface{}) *gomock.Call
StartCollectingTrieStats indicates an expected call of StartCollectingTrieStats.
func (*MockBlockChainMockRecorder) StartContractWarmUp ¶ added in v1.6.0
func (mr *MockBlockChainMockRecorder) StartContractWarmUp(contractAddr interface{}) *gomock.Call
StartContractWarmUp indicates an expected call of StartContractWarmUp.
func (*MockBlockChainMockRecorder) StartStateMigration ¶ added in v1.5.0
func (mr *MockBlockChainMockRecorder) StartStateMigration(arg0, arg1 interface{}) *gomock.Call
StartStateMigration indicates an expected call of StartStateMigration.
func (*MockBlockChainMockRecorder) StartWarmUp ¶ added in v1.5.0
func (mr *MockBlockChainMockRecorder) StartWarmUp() *gomock.Call
StartWarmUp indicates an expected call of StartWarmUp.
func (*MockBlockChainMockRecorder) State ¶
func (mr *MockBlockChainMockRecorder) State() *gomock.Call
State indicates an expected call of State.
func (*MockBlockChainMockRecorder) StateAt ¶
func (mr *MockBlockChainMockRecorder) StateAt(root interface{}) *gomock.Call
StateAt indicates an expected call of StateAt.
func (*MockBlockChainMockRecorder) StateAtWithGCLock ¶ added in v1.4.0
func (mr *MockBlockChainMockRecorder) StateAtWithGCLock(root interface{}) *gomock.Call
StateAtWithGCLock indicates an expected call of StateAtWithGCLock.
func (*MockBlockChainMockRecorder) StateAtWithPersistent ¶ added in v1.5.0
func (mr *MockBlockChainMockRecorder) StateAtWithPersistent(root interface{}) *gomock.Call
StateAtWithPersistent indicates an expected call of StateAtWithPersistent.
func (*MockBlockChainMockRecorder) StateCache ¶
func (mr *MockBlockChainMockRecorder) StateCache() *gomock.Call
StateCache indicates an expected call of StateCache.
func (*MockBlockChainMockRecorder) StateMigrationStatus ¶ added in v1.5.0
func (mr *MockBlockChainMockRecorder) StateMigrationStatus() *gomock.Call
StateMigrationStatus indicates an expected call of StateMigrationStatus.
func (*MockBlockChainMockRecorder) Stop ¶
func (mr *MockBlockChainMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockBlockChainMockRecorder) StopStateMigration ¶ added in v1.5.0
func (mr *MockBlockChainMockRecorder) StopStateMigration() *gomock.Call
StopStateMigration indicates an expected call of StopStateMigration.
func (*MockBlockChainMockRecorder) StopWarmUp ¶ added in v1.5.0
func (mr *MockBlockChainMockRecorder) StopWarmUp() *gomock.Call
StopWarmUp indicates an expected call of StopWarmUp.
func (*MockBlockChainMockRecorder) SubscribeChainEvent ¶
func (mr *MockBlockChainMockRecorder) SubscribeChainEvent(ch interface{}) *gomock.Call
SubscribeChainEvent indicates an expected call of SubscribeChainEvent.
func (*MockBlockChainMockRecorder) SubscribeChainHeadEvent ¶
func (mr *MockBlockChainMockRecorder) SubscribeChainHeadEvent(ch interface{}) *gomock.Call
SubscribeChainHeadEvent indicates an expected call of SubscribeChainHeadEvent.
func (*MockBlockChainMockRecorder) SubscribeChainSideEvent ¶
func (mr *MockBlockChainMockRecorder) SubscribeChainSideEvent(ch interface{}) *gomock.Call
SubscribeChainSideEvent indicates an expected call of SubscribeChainSideEvent.
func (*MockBlockChainMockRecorder) SubscribeLogsEvent ¶
func (mr *MockBlockChainMockRecorder) SubscribeLogsEvent(ch interface{}) *gomock.Call
SubscribeLogsEvent indicates an expected call of SubscribeLogsEvent.
func (*MockBlockChainMockRecorder) SubscribeRemovedLogsEvent ¶
func (mr *MockBlockChainMockRecorder) SubscribeRemovedLogsEvent(ch interface{}) *gomock.Call
SubscribeRemovedLogsEvent indicates an expected call of SubscribeRemovedLogsEvent.
func (*MockBlockChainMockRecorder) TrieNode ¶
func (mr *MockBlockChainMockRecorder) TrieNode(hash interface{}) *gomock.Call
TrieNode indicates an expected call of TrieNode.
func (*MockBlockChainMockRecorder) Validator ¶
func (mr *MockBlockChainMockRecorder) Validator() *gomock.Call
Validator indicates an expected call of Validator.
func (*MockBlockChainMockRecorder) WriteBlockWithState ¶
func (mr *MockBlockChainMockRecorder) WriteBlockWithState(block, receipts, stateDB interface{}) *gomock.Call
WriteBlockWithState indicates an expected call of WriteBlockWithState.
type MockTxPool ¶
type MockTxPool struct {
// contains filtered or unexported fields
}
MockTxPool is a mock of TxPool interface
func NewMockTxPool ¶
func NewMockTxPool(ctrl *gomock.Controller) *MockTxPool
NewMockTxPool creates a new mock instance
func (*MockTxPool) AddLocal ¶
func (m *MockTxPool) AddLocal(arg0 *types.Transaction) error
AddLocal mocks base method
func (*MockTxPool) CachedPendingTxsByCount ¶
func (m *MockTxPool) CachedPendingTxsByCount(arg0 int) types.Transactions
CachedPendingTxsByCount mocks base method
func (*MockTxPool) Content ¶
func (m *MockTxPool) Content() (map[common.Address]types.Transactions, map[common.Address]types.Transactions)
Content mocks base method
func (*MockTxPool) EXPECT ¶
func (m *MockTxPool) EXPECT() *MockTxPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTxPool) Get ¶
func (m *MockTxPool) Get(arg0 common.Hash) *types.Transaction
Get mocks base method
func (*MockTxPool) GetPendingNonce ¶
func (m *MockTxPool) GetPendingNonce(arg0 common.Address) uint64
GetPendingNonce mocks base method
func (*MockTxPool) HandleTxMsg ¶
func (m *MockTxPool) HandleTxMsg(arg0 types.Transactions)
HandleTxMsg mocks base method
func (*MockTxPool) Pending ¶
func (m *MockTxPool) Pending() (map[common.Address]types.Transactions, error)
Pending mocks base method
func (*MockTxPool) SetGasPrice ¶
func (m *MockTxPool) SetGasPrice(arg0 *big.Int)
SetGasPrice mocks base method
func (*MockTxPool) StartSpamThrottler ¶ added in v1.7.3
func (m *MockTxPool) StartSpamThrottler(arg0 *blockchain.ThrottlerConfig) error
StartSpamThrottler mocks base method
func (*MockTxPool) StopSpamThrottler ¶ added in v1.7.3
func (m *MockTxPool) StopSpamThrottler()
StopSpamThrottler mocks base method
func (*MockTxPool) SubscribeNewTxsEvent ¶
func (m *MockTxPool) SubscribeNewTxsEvent(arg0 chan<- blockchain.NewTxsEvent) event.Subscription
SubscribeNewTxsEvent mocks base method
type MockTxPoolMockRecorder ¶
type MockTxPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockTxPoolMockRecorder is the mock recorder for MockTxPool
func (*MockTxPoolMockRecorder) AddLocal ¶
func (mr *MockTxPoolMockRecorder) AddLocal(arg0 interface{}) *gomock.Call
AddLocal indicates an expected call of AddLocal
func (*MockTxPoolMockRecorder) CachedPendingTxsByCount ¶
func (mr *MockTxPoolMockRecorder) CachedPendingTxsByCount(arg0 interface{}) *gomock.Call
CachedPendingTxsByCount indicates an expected call of CachedPendingTxsByCount
func (*MockTxPoolMockRecorder) Content ¶
func (mr *MockTxPoolMockRecorder) Content() *gomock.Call
Content indicates an expected call of Content
func (*MockTxPoolMockRecorder) GasPrice ¶
func (mr *MockTxPoolMockRecorder) GasPrice() *gomock.Call
GasPrice indicates an expected call of GasPrice
func (*MockTxPoolMockRecorder) Get ¶
func (mr *MockTxPoolMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockTxPoolMockRecorder) GetPendingNonce ¶
func (mr *MockTxPoolMockRecorder) GetPendingNonce(arg0 interface{}) *gomock.Call
GetPendingNonce indicates an expected call of GetPendingNonce
func (*MockTxPoolMockRecorder) HandleTxMsg ¶
func (mr *MockTxPoolMockRecorder) HandleTxMsg(arg0 interface{}) *gomock.Call
HandleTxMsg indicates an expected call of HandleTxMsg
func (*MockTxPoolMockRecorder) Pending ¶
func (mr *MockTxPoolMockRecorder) Pending() *gomock.Call
Pending indicates an expected call of Pending
func (*MockTxPoolMockRecorder) SetGasPrice ¶
func (mr *MockTxPoolMockRecorder) SetGasPrice(arg0 interface{}) *gomock.Call
SetGasPrice indicates an expected call of SetGasPrice
func (*MockTxPoolMockRecorder) StartSpamThrottler ¶ added in v1.7.3
func (mr *MockTxPoolMockRecorder) StartSpamThrottler(arg0 interface{}) *gomock.Call
StartSpamThrottler indicates an expected call of StartSpamThrottler
func (*MockTxPoolMockRecorder) Stats ¶
func (mr *MockTxPoolMockRecorder) Stats() *gomock.Call
Stats indicates an expected call of Stats
func (*MockTxPoolMockRecorder) Stop ¶
func (mr *MockTxPoolMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
func (*MockTxPoolMockRecorder) StopSpamThrottler ¶ added in v1.7.3
func (mr *MockTxPoolMockRecorder) StopSpamThrottler() *gomock.Call
StopSpamThrottler indicates an expected call of StopSpamThrottler
func (*MockTxPoolMockRecorder) SubscribeNewTxsEvent ¶
func (mr *MockTxPoolMockRecorder) SubscribeNewTxsEvent(arg0 interface{}) *gomock.Call
SubscribeNewTxsEvent indicates an expected call of SubscribeNewTxsEvent