Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockBlockChain
- func (m *MockBlockChain) ApplyTransaction(arg0 *params.ChainConfig, arg1 *common.Address, arg2 *state.StateDB, ...) (*types.Receipt, uint64, *vm.InternalTxTrace, error)
- func (m *MockBlockChain) BadBlocks() ([]blockchain.BadBlockArgs, error)
- func (m *MockBlockChain) BlockSubscriptionLoop(arg0 *blockchain.TxPool)
- func (m *MockBlockChain) CloseBlockSubscriptionLoop()
- func (m *MockBlockChain) Config() *params.ChainConfig
- 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(arg0 io.Writer) error
- func (m *MockBlockChain) FastSyncCommitHead(arg0 common.Hash) error
- func (m *MockBlockChain) Genesis() *types.Block
- func (m *MockBlockChain) GetBlock(arg0 common.Hash, arg1 uint64) *types.Block
- func (m *MockBlockChain) GetBlockByHash(arg0 common.Hash) *types.Block
- func (m *MockBlockChain) GetBlockByNumber(arg0 uint64) *types.Block
- func (m *MockBlockChain) GetBlockHashesFromHash(arg0 common.Hash, arg1 uint64) []common.Hash
- func (m *MockBlockChain) GetBlockReceiptsInCache(arg0 common.Hash) types.Receipts
- func (m *MockBlockChain) GetBodyRLP(arg0 common.Hash) rlp.RawValue
- func (m *MockBlockChain) GetHeader(arg0 common.Hash, arg1 uint64) *types.Header
- func (m *MockBlockChain) GetHeaderByHash(arg0 common.Hash) *types.Header
- func (m *MockBlockChain) GetHeaderByNumber(arg0 uint64) *types.Header
- func (m *MockBlockChain) GetLogsByHash(arg0 common.Hash) [][]*types.Log
- func (m *MockBlockChain) GetNonceInCache(arg0 common.Address) (uint64, bool)
- func (m *MockBlockChain) GetReceiptsByBlockHash(arg0 common.Hash) types.Receipts
- func (m *MockBlockChain) GetTd(arg0 common.Hash, arg1 uint64) *big.Int
- func (m *MockBlockChain) GetTdByHash(arg0 common.Hash) *big.Int
- func (m *MockBlockChain) GetTxAndLookupInfo(arg0 common.Hash) (*types.Transaction, common.Hash, uint64, uint64)
- func (m *MockBlockChain) GetTxAndLookupInfoInCache(arg0 common.Hash) (*types.Transaction, common.Hash, uint64, uint64)
- func (m *MockBlockChain) GetTxLookupInfoAndReceipt(arg0 common.Hash) (*types.Transaction, common.Hash, uint64, uint64, *types.Receipt)
- func (m *MockBlockChain) GetTxLookupInfoAndReceiptInCache(arg0 common.Hash) (*types.Transaction, common.Hash, uint64, uint64, *types.Receipt)
- func (m *MockBlockChain) HasBadBlock(arg0 common.Hash) bool
- func (m *MockBlockChain) HasBlock(arg0 common.Hash, arg1 uint64) bool
- func (m *MockBlockChain) HasHeader(arg0 common.Hash, arg1 uint64) bool
- func (m *MockBlockChain) InsertChain(arg0 types.Blocks) (int, error)
- func (m *MockBlockChain) InsertHeaderChain(arg0 []*types.Header, arg1 int) (int, error)
- func (m *MockBlockChain) InsertReceiptChain(arg0 types.Blocks, arg1 []types.Receipts) (int, error)
- func (m *MockBlockChain) IsParallelDBWrite() bool
- func (m *MockBlockChain) IsSenderTxHashIndexingEnabled() bool
- func (m *MockBlockChain) PostChainEvents(arg0 []interface{}, arg1 []*types.Log)
- func (m *MockBlockChain) PrepareStateMigration() error
- func (m *MockBlockChain) Processor() blockchain.Processor
- func (m *MockBlockChain) ResetWithGenesisBlock(arg0 *types.Block) error
- func (m *MockBlockChain) Rollback(arg0 []common.Hash)
- func (m *MockBlockChain) SaveTrieNodeCacheToDisk() error
- func (m *MockBlockChain) SetHead(arg0 uint64) error
- func (m *MockBlockChain) SetProposerPolicy(arg0 uint64)
- func (m *MockBlockChain) SetUseGiniCoeff(arg0 bool)
- 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(arg0 common.Hash) (*state.StateDB, error)
- func (m *MockBlockChain) StateAtWithGCLock(arg0 common.Hash) (*state.StateDB, error)
- func (m *MockBlockChain) StateAtWithPersistent(arg0 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(arg0 chan<- blockchain.ChainEvent) event.Subscription
- func (m *MockBlockChain) SubscribeChainHeadEvent(arg0 chan<- blockchain.ChainHeadEvent) event.Subscription
- func (m *MockBlockChain) SubscribeChainSideEvent(arg0 chan<- blockchain.ChainSideEvent) event.Subscription
- func (m *MockBlockChain) SubscribeLogsEvent(arg0 chan<- []*types.Log) event.Subscription
- func (m *MockBlockChain) SubscribeRemovedLogsEvent(arg0 chan<- blockchain.RemovedLogsEvent) event.Subscription
- func (m *MockBlockChain) TrieNode(arg0 common.Hash) ([]byte, error)
- func (m *MockBlockChain) TryGetCachedStateDB(arg0 common.Hash) (*state.StateDB, error)
- func (m *MockBlockChain) Validator() blockchain.Validator
- func (m *MockBlockChain) WriteBlockWithState(arg0 *types.Block, arg1 []*types.Receipt, arg2 *state.StateDB) (blockchain.WriteStatus, error)
- type MockBlockChainMockRecorder
- func (mr *MockBlockChainMockRecorder) ApplyTransaction(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) BadBlocks() *gomock.Call
- func (mr *MockBlockChainMockRecorder) BlockSubscriptionLoop(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) CloseBlockSubscriptionLoop() *gomock.Call
- func (mr *MockBlockChainMockRecorder) Config() *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(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) FastSyncCommitHead(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) Genesis() *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetBlock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetBlockByHash(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetBlockByNumber(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetBlockHashesFromHash(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetBlockReceiptsInCache(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetBodyRLP(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetHeader(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetHeaderByHash(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetHeaderByNumber(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetLogsByHash(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetNonceInCache(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetReceiptsByBlockHash(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetTd(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetTdByHash(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetTxAndLookupInfo(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetTxAndLookupInfoInCache(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetTxLookupInfoAndReceipt(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) GetTxLookupInfoAndReceiptInCache(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) HasBadBlock(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) HasBlock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) HasHeader(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) InsertChain(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) InsertHeaderChain(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) InsertReceiptChain(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) IsParallelDBWrite() *gomock.Call
- func (mr *MockBlockChainMockRecorder) IsSenderTxHashIndexingEnabled() *gomock.Call
- func (mr *MockBlockChainMockRecorder) PostChainEvents(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) PrepareStateMigration() *gomock.Call
- func (mr *MockBlockChainMockRecorder) Processor() *gomock.Call
- func (mr *MockBlockChainMockRecorder) ResetWithGenesisBlock(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) Rollback(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) SaveTrieNodeCacheToDisk() *gomock.Call
- func (mr *MockBlockChainMockRecorder) SetHead(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) SetProposerPolicy(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) SetUseGiniCoeff(arg0 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(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) StateAtWithGCLock(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) StateAtWithPersistent(arg0 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(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) SubscribeChainHeadEvent(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) SubscribeChainSideEvent(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) SubscribeLogsEvent(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) SubscribeRemovedLogsEvent(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) TrieNode(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) TryGetCachedStateDB(arg0 interface{}) *gomock.Call
- func (mr *MockBlockChainMockRecorder) Validator() *gomock.Call
- func (mr *MockBlockChainMockRecorder) WriteBlockWithState(arg0, arg1, arg2 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) Stats() (int, int)
- func (m *MockTxPool) Stop()
- 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) Stats() *gomock.Call
- func (mr *MockTxPoolMockRecorder) Stop() *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 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(arg0 *params.ChainConfig, arg1 *common.Address, arg2 *state.StateDB, arg3 *types.Header, arg4 *types.Transaction, arg5 *uint64, arg6 *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(arg0 *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) 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(arg0 io.Writer) error
Export mocks base method
func (*MockBlockChain) FastSyncCommitHead ¶
func (m *MockBlockChain) FastSyncCommitHead(arg0 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(arg0 common.Hash) *types.Block
GetBlockByHash mocks base method
func (*MockBlockChain) GetBlockByNumber ¶
func (m *MockBlockChain) GetBlockByNumber(arg0 uint64) *types.Block
GetBlockByNumber mocks base method
func (*MockBlockChain) GetBlockHashesFromHash ¶
GetBlockHashesFromHash mocks base method
func (*MockBlockChain) GetBlockReceiptsInCache ¶
func (m *MockBlockChain) GetBlockReceiptsInCache(arg0 common.Hash) types.Receipts
GetBlockReceiptsInCache mocks base method
func (*MockBlockChain) GetBodyRLP ¶
func (m *MockBlockChain) GetBodyRLP(arg0 common.Hash) rlp.RawValue
GetBodyRLP mocks base method
func (*MockBlockChain) GetHeaderByHash ¶
func (m *MockBlockChain) GetHeaderByHash(arg0 common.Hash) *types.Header
GetHeaderByHash mocks base method
func (*MockBlockChain) GetHeaderByNumber ¶
func (m *MockBlockChain) GetHeaderByNumber(arg0 uint64) *types.Header
GetHeaderByNumber mocks base method
func (*MockBlockChain) GetLogsByHash ¶
func (m *MockBlockChain) GetLogsByHash(arg0 common.Hash) [][]*types.Log
GetLogsByHash mocks base method
func (*MockBlockChain) GetNonceInCache ¶
func (m *MockBlockChain) GetNonceInCache(arg0 common.Address) (uint64, bool)
GetNonceInCache mocks base method
func (*MockBlockChain) GetReceiptsByBlockHash ¶
func (m *MockBlockChain) GetReceiptsByBlockHash(arg0 common.Hash) types.Receipts
GetReceiptsByBlockHash mocks base method
func (*MockBlockChain) GetTdByHash ¶
func (m *MockBlockChain) GetTdByHash(arg0 common.Hash) *big.Int
GetTdByHash mocks base method
func (*MockBlockChain) GetTxAndLookupInfo ¶
func (m *MockBlockChain) GetTxAndLookupInfo(arg0 common.Hash) (*types.Transaction, common.Hash, uint64, uint64)
GetTxAndLookupInfo mocks base method
func (*MockBlockChain) GetTxAndLookupInfoInCache ¶
func (m *MockBlockChain) GetTxAndLookupInfoInCache(arg0 common.Hash) (*types.Transaction, common.Hash, uint64, uint64)
GetTxAndLookupInfoInCache mocks base method
func (*MockBlockChain) GetTxLookupInfoAndReceipt ¶
func (m *MockBlockChain) GetTxLookupInfoAndReceipt(arg0 common.Hash) (*types.Transaction, common.Hash, uint64, uint64, *types.Receipt)
GetTxLookupInfoAndReceipt mocks base method
func (*MockBlockChain) GetTxLookupInfoAndReceiptInCache ¶
func (m *MockBlockChain) GetTxLookupInfoAndReceiptInCache(arg0 common.Hash) (*types.Transaction, common.Hash, uint64, uint64, *types.Receipt)
GetTxLookupInfoAndReceiptInCache mocks base method
func (*MockBlockChain) HasBadBlock ¶
func (m *MockBlockChain) HasBadBlock(arg0 common.Hash) bool
HasBadBlock mocks base method
func (*MockBlockChain) HasBlock ¶
func (m *MockBlockChain) HasBlock(arg0 common.Hash, arg1 uint64) bool
HasBlock mocks base method
func (*MockBlockChain) HasHeader ¶
func (m *MockBlockChain) HasHeader(arg0 common.Hash, arg1 uint64) bool
HasHeader mocks base method
func (*MockBlockChain) InsertChain ¶
func (m *MockBlockChain) InsertChain(arg0 types.Blocks) (int, error)
InsertChain mocks base method
func (*MockBlockChain) InsertHeaderChain ¶
InsertHeaderChain mocks base method
func (*MockBlockChain) InsertReceiptChain ¶
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(arg0 []interface{}, arg1 []*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(arg0 *types.Block) error
ResetWithGenesisBlock mocks base method
func (*MockBlockChain) Rollback ¶
func (m *MockBlockChain) Rollback(arg0 []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) SetHead ¶
func (m *MockBlockChain) SetHead(arg0 uint64) error
SetHead mocks base method
func (*MockBlockChain) SetProposerPolicy ¶
func (m *MockBlockChain) SetProposerPolicy(arg0 uint64)
SetProposerPolicy mocks base method
func (*MockBlockChain) SetUseGiniCoeff ¶
func (m *MockBlockChain) SetUseGiniCoeff(arg0 bool)
SetUseGiniCoeff 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(arg0 chan<- blockchain.ChainEvent) event.Subscription
SubscribeChainEvent mocks base method
func (*MockBlockChain) SubscribeChainHeadEvent ¶
func (m *MockBlockChain) SubscribeChainHeadEvent(arg0 chan<- blockchain.ChainHeadEvent) event.Subscription
SubscribeChainHeadEvent mocks base method
func (*MockBlockChain) SubscribeChainSideEvent ¶
func (m *MockBlockChain) SubscribeChainSideEvent(arg0 chan<- blockchain.ChainSideEvent) event.Subscription
SubscribeChainSideEvent mocks base method
func (*MockBlockChain) SubscribeLogsEvent ¶
func (m *MockBlockChain) SubscribeLogsEvent(arg0 chan<- []*types.Log) event.Subscription
SubscribeLogsEvent mocks base method
func (*MockBlockChain) SubscribeRemovedLogsEvent ¶
func (m *MockBlockChain) SubscribeRemovedLogsEvent(arg0 chan<- blockchain.RemovedLogsEvent) event.Subscription
SubscribeRemovedLogsEvent mocks base method
func (*MockBlockChain) TrieNode ¶
func (m *MockBlockChain) TrieNode(arg0 common.Hash) ([]byte, error)
TrieNode mocks base method
func (*MockBlockChain) TryGetCachedStateDB ¶
TryGetCachedStateDB mocks base method
func (*MockBlockChain) Validator ¶
func (m *MockBlockChain) Validator() blockchain.Validator
Validator mocks base method
func (*MockBlockChain) WriteBlockWithState ¶
func (m *MockBlockChain) WriteBlockWithState(arg0 *types.Block, arg1 []*types.Receipt, arg2 *state.StateDB) (blockchain.WriteStatus, 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(arg0, arg1, arg2, arg3, arg4, arg5, arg6 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(arg0 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) 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(arg0 interface{}) *gomock.Call
Export indicates an expected call of Export
func (*MockBlockChainMockRecorder) FastSyncCommitHead ¶
func (mr *MockBlockChainMockRecorder) FastSyncCommitHead(arg0 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(arg0, arg1 interface{}) *gomock.Call
GetBlock indicates an expected call of GetBlock
func (*MockBlockChainMockRecorder) GetBlockByHash ¶
func (mr *MockBlockChainMockRecorder) GetBlockByHash(arg0 interface{}) *gomock.Call
GetBlockByHash indicates an expected call of GetBlockByHash
func (*MockBlockChainMockRecorder) GetBlockByNumber ¶
func (mr *MockBlockChainMockRecorder) GetBlockByNumber(arg0 interface{}) *gomock.Call
GetBlockByNumber indicates an expected call of GetBlockByNumber
func (*MockBlockChainMockRecorder) GetBlockHashesFromHash ¶
func (mr *MockBlockChainMockRecorder) GetBlockHashesFromHash(arg0, arg1 interface{}) *gomock.Call
GetBlockHashesFromHash indicates an expected call of GetBlockHashesFromHash
func (*MockBlockChainMockRecorder) GetBlockReceiptsInCache ¶
func (mr *MockBlockChainMockRecorder) GetBlockReceiptsInCache(arg0 interface{}) *gomock.Call
GetBlockReceiptsInCache indicates an expected call of GetBlockReceiptsInCache
func (*MockBlockChainMockRecorder) GetBodyRLP ¶
func (mr *MockBlockChainMockRecorder) GetBodyRLP(arg0 interface{}) *gomock.Call
GetBodyRLP indicates an expected call of GetBodyRLP
func (*MockBlockChainMockRecorder) GetHeader ¶
func (mr *MockBlockChainMockRecorder) GetHeader(arg0, arg1 interface{}) *gomock.Call
GetHeader indicates an expected call of GetHeader
func (*MockBlockChainMockRecorder) GetHeaderByHash ¶
func (mr *MockBlockChainMockRecorder) GetHeaderByHash(arg0 interface{}) *gomock.Call
GetHeaderByHash indicates an expected call of GetHeaderByHash
func (*MockBlockChainMockRecorder) GetHeaderByNumber ¶
func (mr *MockBlockChainMockRecorder) GetHeaderByNumber(arg0 interface{}) *gomock.Call
GetHeaderByNumber indicates an expected call of GetHeaderByNumber
func (*MockBlockChainMockRecorder) GetLogsByHash ¶
func (mr *MockBlockChainMockRecorder) GetLogsByHash(arg0 interface{}) *gomock.Call
GetLogsByHash indicates an expected call of GetLogsByHash
func (*MockBlockChainMockRecorder) GetNonceInCache ¶
func (mr *MockBlockChainMockRecorder) GetNonceInCache(arg0 interface{}) *gomock.Call
GetNonceInCache indicates an expected call of GetNonceInCache
func (*MockBlockChainMockRecorder) GetReceiptsByBlockHash ¶
func (mr *MockBlockChainMockRecorder) GetReceiptsByBlockHash(arg0 interface{}) *gomock.Call
GetReceiptsByBlockHash indicates an expected call of GetReceiptsByBlockHash
func (*MockBlockChainMockRecorder) GetTd ¶
func (mr *MockBlockChainMockRecorder) GetTd(arg0, arg1 interface{}) *gomock.Call
GetTd indicates an expected call of GetTd
func (*MockBlockChainMockRecorder) GetTdByHash ¶
func (mr *MockBlockChainMockRecorder) GetTdByHash(arg0 interface{}) *gomock.Call
GetTdByHash indicates an expected call of GetTdByHash
func (*MockBlockChainMockRecorder) GetTxAndLookupInfo ¶
func (mr *MockBlockChainMockRecorder) GetTxAndLookupInfo(arg0 interface{}) *gomock.Call
GetTxAndLookupInfo indicates an expected call of GetTxAndLookupInfo
func (*MockBlockChainMockRecorder) GetTxAndLookupInfoInCache ¶
func (mr *MockBlockChainMockRecorder) GetTxAndLookupInfoInCache(arg0 interface{}) *gomock.Call
GetTxAndLookupInfoInCache indicates an expected call of GetTxAndLookupInfoInCache
func (*MockBlockChainMockRecorder) GetTxLookupInfoAndReceipt ¶
func (mr *MockBlockChainMockRecorder) GetTxLookupInfoAndReceipt(arg0 interface{}) *gomock.Call
GetTxLookupInfoAndReceipt indicates an expected call of GetTxLookupInfoAndReceipt
func (*MockBlockChainMockRecorder) GetTxLookupInfoAndReceiptInCache ¶
func (mr *MockBlockChainMockRecorder) GetTxLookupInfoAndReceiptInCache(arg0 interface{}) *gomock.Call
GetTxLookupInfoAndReceiptInCache indicates an expected call of GetTxLookupInfoAndReceiptInCache
func (*MockBlockChainMockRecorder) HasBadBlock ¶
func (mr *MockBlockChainMockRecorder) HasBadBlock(arg0 interface{}) *gomock.Call
HasBadBlock indicates an expected call of HasBadBlock
func (*MockBlockChainMockRecorder) HasBlock ¶
func (mr *MockBlockChainMockRecorder) HasBlock(arg0, arg1 interface{}) *gomock.Call
HasBlock indicates an expected call of HasBlock
func (*MockBlockChainMockRecorder) HasHeader ¶
func (mr *MockBlockChainMockRecorder) HasHeader(arg0, arg1 interface{}) *gomock.Call
HasHeader indicates an expected call of HasHeader
func (*MockBlockChainMockRecorder) InsertChain ¶
func (mr *MockBlockChainMockRecorder) InsertChain(arg0 interface{}) *gomock.Call
InsertChain indicates an expected call of InsertChain
func (*MockBlockChainMockRecorder) InsertHeaderChain ¶
func (mr *MockBlockChainMockRecorder) InsertHeaderChain(arg0, arg1 interface{}) *gomock.Call
InsertHeaderChain indicates an expected call of InsertHeaderChain
func (*MockBlockChainMockRecorder) InsertReceiptChain ¶
func (mr *MockBlockChainMockRecorder) InsertReceiptChain(arg0, arg1 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(arg0, arg1 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(arg0 interface{}) *gomock.Call
ResetWithGenesisBlock indicates an expected call of ResetWithGenesisBlock
func (*MockBlockChainMockRecorder) Rollback ¶
func (mr *MockBlockChainMockRecorder) Rollback(arg0 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) SetHead ¶
func (mr *MockBlockChainMockRecorder) SetHead(arg0 interface{}) *gomock.Call
SetHead indicates an expected call of SetHead
func (*MockBlockChainMockRecorder) SetProposerPolicy ¶
func (mr *MockBlockChainMockRecorder) SetProposerPolicy(arg0 interface{}) *gomock.Call
SetProposerPolicy indicates an expected call of SetProposerPolicy
func (*MockBlockChainMockRecorder) SetUseGiniCoeff ¶
func (mr *MockBlockChainMockRecorder) SetUseGiniCoeff(arg0 interface{}) *gomock.Call
SetUseGiniCoeff indicates an expected call of SetUseGiniCoeff
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(arg0 interface{}) *gomock.Call
StateAt indicates an expected call of StateAt
func (*MockBlockChainMockRecorder) StateAtWithGCLock ¶ added in v1.4.0
func (mr *MockBlockChainMockRecorder) StateAtWithGCLock(arg0 interface{}) *gomock.Call
StateAtWithGCLock indicates an expected call of StateAtWithGCLock
func (*MockBlockChainMockRecorder) StateAtWithPersistent ¶ added in v1.5.0
func (mr *MockBlockChainMockRecorder) StateAtWithPersistent(arg0 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(arg0 interface{}) *gomock.Call
SubscribeChainEvent indicates an expected call of SubscribeChainEvent
func (*MockBlockChainMockRecorder) SubscribeChainHeadEvent ¶
func (mr *MockBlockChainMockRecorder) SubscribeChainHeadEvent(arg0 interface{}) *gomock.Call
SubscribeChainHeadEvent indicates an expected call of SubscribeChainHeadEvent
func (*MockBlockChainMockRecorder) SubscribeChainSideEvent ¶
func (mr *MockBlockChainMockRecorder) SubscribeChainSideEvent(arg0 interface{}) *gomock.Call
SubscribeChainSideEvent indicates an expected call of SubscribeChainSideEvent
func (*MockBlockChainMockRecorder) SubscribeLogsEvent ¶
func (mr *MockBlockChainMockRecorder) SubscribeLogsEvent(arg0 interface{}) *gomock.Call
SubscribeLogsEvent indicates an expected call of SubscribeLogsEvent
func (*MockBlockChainMockRecorder) SubscribeRemovedLogsEvent ¶
func (mr *MockBlockChainMockRecorder) SubscribeRemovedLogsEvent(arg0 interface{}) *gomock.Call
SubscribeRemovedLogsEvent indicates an expected call of SubscribeRemovedLogsEvent
func (*MockBlockChainMockRecorder) TrieNode ¶
func (mr *MockBlockChainMockRecorder) TrieNode(arg0 interface{}) *gomock.Call
TrieNode indicates an expected call of TrieNode
func (*MockBlockChainMockRecorder) TryGetCachedStateDB ¶
func (mr *MockBlockChainMockRecorder) TryGetCachedStateDB(arg0 interface{}) *gomock.Call
TryGetCachedStateDB indicates an expected call of TryGetCachedStateDB
func (*MockBlockChainMockRecorder) Validator ¶
func (mr *MockBlockChainMockRecorder) Validator() *gomock.Call
Validator indicates an expected call of Validator
func (*MockBlockChainMockRecorder) WriteBlockWithState ¶
func (mr *MockBlockChainMockRecorder) WriteBlockWithState(arg0, arg1, arg2 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) 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) 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) SubscribeNewTxsEvent ¶
func (mr *MockTxPoolMockRecorder) SubscribeNewTxsEvent(arg0 interface{}) *gomock.Call
SubscribeNewTxsEvent indicates an expected call of SubscribeNewTxsEvent