mocks

package
v1.0.2-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

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, *vm.InternalTxTrace, error)

ApplyTransaction mocks base method.

func (*MockBlockChain) BadBlocks

func (m *MockBlockChain) BadBlocks() ([]blockchain.BadBlockArgs, error)

BadBlocks mocks base method.

func (*MockBlockChain) BlockSubscriptionLoop

func (m *MockBlockChain) BlockSubscriptionLoop(arg0 *blockchain.TxPool)

BlockSubscriptionLoop mocks base method.

func (*MockBlockChain) CloseBlockSubscriptionLoop

func (m *MockBlockChain) CloseBlockSubscriptionLoop()

CloseBlockSubscriptionLoop mocks base method.

func (*MockBlockChain) Config

func (m *MockBlockChain) Config() *params.ChainConfig

Config mocks base method.

func (*MockBlockChain) ContractCode

func (m *MockBlockChain) ContractCode(arg0 common.Hash) ([]byte, error)

ContractCode mocks base method.

func (*MockBlockChain) ContractCodeWithPrefix

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) CurrentBlockUpdateLoop

func (m *MockBlockChain) CurrentBlockUpdateLoop(arg0 *blockchain.TxPool)

CurrentBlockUpdateLoop 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

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) ExportN

func (m *MockBlockChain) ExportN(arg0 io.Writer, arg1, arg2 uint64) error

ExportN 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) GetBlock

func (m *MockBlockChain) GetBlock(arg0 common.Hash, arg1 uint64) *types.Block

GetBlock 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

func (m *MockBlockChain) GetBlockHashesFromHash(arg0 common.Hash, arg1 uint64) []common.Hash

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) GetContractStorageRoot

func (m *MockBlockChain) GetContractStorageRoot(arg0 *types.Block, arg1 state.Database, arg2 common.Address) (common.ExtHash, error)

GetContractStorageRoot mocks base method.

func (*MockBlockChain) GetHeader

func (m *MockBlockChain) GetHeader(arg0 common.Hash, arg1 uint64) *types.Header

GetHeader 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) GetReceiptsByBlockHash

func (m *MockBlockChain) GetReceiptsByBlockHash(arg0 common.Hash) types.Receipts

GetReceiptsByBlockHash mocks base method.

func (*MockBlockChain) GetTd

func (m *MockBlockChain) GetTd(arg0 common.Hash, arg1 uint64) *big.Int

GetTd 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

func (m *MockBlockChain) InsertHeaderChain(arg0 []*types.Header, arg1 int) (int, error)

InsertHeaderChain mocks base method.

func (*MockBlockChain) InsertReceiptChain

func (m *MockBlockChain) InsertReceiptChain(arg0 types.Blocks, arg1 []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(arg0 []interface{}, arg1 []*types.Log)

PostChainEvents mocks base method.

func (*MockBlockChain) PrepareStateMigration

func (m *MockBlockChain) PrepareStateMigration() error

PrepareStateMigration mocks base method.

func (*MockBlockChain) Processor

func (m *MockBlockChain) Processor() blockchain.Processor

Processor mocks base method.

func (*MockBlockChain) PrunableStateAt

func (m *MockBlockChain) PrunableStateAt(arg0 common.Hash, arg1 uint64) (*state.StateDB, error)

PrunableStateAt 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

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) Snapshots

func (m *MockBlockChain) Snapshots() *snapshot.Tree

Snapshots mocks base method.

func (*MockBlockChain) StartCollectingTrieStats

func (m *MockBlockChain) StartCollectingTrieStats(arg0 common.Address) error

StartCollectingTrieStats mocks base method.

func (*MockBlockChain) StartContractWarmUp

func (m *MockBlockChain) StartContractWarmUp(arg0 common.Address, arg1 uint) error

StartContractWarmUp mocks base method.

func (*MockBlockChain) StartStateMigration

func (m *MockBlockChain) StartStateMigration(arg0 uint64, arg1 common.Hash) error

StartStateMigration mocks base method.

func (*MockBlockChain) StartWarmUp

func (m *MockBlockChain) StartWarmUp(arg0 uint) error

StartWarmUp mocks base method.

func (*MockBlockChain) State

func (m *MockBlockChain) State() (*state.StateDB, error)

State mocks base method.

func (*MockBlockChain) StateAt

func (m *MockBlockChain) StateAt(arg0 common.Hash) (*state.StateDB, error)

StateAt mocks base method.

func (*MockBlockChain) StateAtWithGCLock

func (m *MockBlockChain) StateAtWithGCLock(arg0 common.Hash) (*state.StateDB, error)

StateAtWithGCLock mocks base method.

func (*MockBlockChain) StateAtWithPersistent

func (m *MockBlockChain) StateAtWithPersistent(arg0 common.Hash) (*state.StateDB, error)

StateAtWithPersistent mocks base method.

func (*MockBlockChain) StateCache

func (m *MockBlockChain) StateCache() state.Database

StateCache mocks base method.

func (*MockBlockChain) StateMigrationStatus

func (m *MockBlockChain) StateMigrationStatus() (bool, uint64, int, int, int, float64, error)

StateMigrationStatus mocks base method.

func (*MockBlockChain) Stop

func (m *MockBlockChain) Stop()

Stop mocks base method.

func (*MockBlockChain) StopStateMigration

func (m *MockBlockChain) StopStateMigration() error

StopStateMigration mocks base method.

func (*MockBlockChain) StopWarmUp

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) 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.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(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

func (mr *MockBlockChainMockRecorder) BlockSubscriptionLoop(arg0 interface{}) *gomock.Call

BlockSubscriptionLoop indicates an expected call of BlockSubscriptionLoop.

func (*MockBlockChainMockRecorder) CloseBlockSubscriptionLoop

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

func (mr *MockBlockChainMockRecorder) ContractCode(arg0 interface{}) *gomock.Call

ContractCode indicates an expected call of ContractCode.

func (*MockBlockChainMockRecorder) ContractCodeWithPrefix

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) CurrentBlockUpdateLoop

func (mr *MockBlockChainMockRecorder) CurrentBlockUpdateLoop(arg0 interface{}) *gomock.Call

CurrentBlockUpdateLoop indicates an expected call of CurrentBlockUpdateLoop.

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) ExportN

func (mr *MockBlockChainMockRecorder) ExportN(arg0, arg1, arg2 interface{}) *gomock.Call

ExportN indicates an expected call of ExportN.

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) GetContractStorageRoot

func (mr *MockBlockChainMockRecorder) GetContractStorageRoot(arg0, arg1, arg2 interface{}) *gomock.Call

GetContractStorageRoot indicates an expected call of GetContractStorageRoot.

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) 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

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) PrunableStateAt

func (mr *MockBlockChainMockRecorder) PrunableStateAt(arg0, arg1 interface{}) *gomock.Call

PrunableStateAt indicates an expected call of PrunableStateAt.

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

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) Snapshots

func (mr *MockBlockChainMockRecorder) Snapshots() *gomock.Call

Snapshots indicates an expected call of Snapshots.

func (*MockBlockChainMockRecorder) StartCollectingTrieStats

func (mr *MockBlockChainMockRecorder) StartCollectingTrieStats(arg0 interface{}) *gomock.Call

StartCollectingTrieStats indicates an expected call of StartCollectingTrieStats.

func (*MockBlockChainMockRecorder) StartContractWarmUp

func (mr *MockBlockChainMockRecorder) StartContractWarmUp(arg0, arg1 interface{}) *gomock.Call

StartContractWarmUp indicates an expected call of StartContractWarmUp.

func (*MockBlockChainMockRecorder) StartStateMigration

func (mr *MockBlockChainMockRecorder) StartStateMigration(arg0, arg1 interface{}) *gomock.Call

StartStateMigration indicates an expected call of StartStateMigration.

func (*MockBlockChainMockRecorder) StartWarmUp

func (mr *MockBlockChainMockRecorder) StartWarmUp(arg0 interface{}) *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

func (mr *MockBlockChainMockRecorder) StateAtWithGCLock(arg0 interface{}) *gomock.Call

StateAtWithGCLock indicates an expected call of StateAtWithGCLock.

func (*MockBlockChainMockRecorder) StateAtWithPersistent

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

func (mr *MockBlockChainMockRecorder) StateMigrationStatus() *gomock.Call

StateMigrationStatus indicates an expected call of StateMigrationStatus.

func (*MockBlockChainMockRecorder) Stop

Stop indicates an expected call of Stop.

func (*MockBlockChainMockRecorder) StopStateMigration

func (mr *MockBlockChainMockRecorder) StopStateMigration() *gomock.Call

StopStateMigration indicates an expected call of StopStateMigration.

func (*MockBlockChainMockRecorder) StopWarmUp

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) 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

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) GasPrice

func (m *MockTxPool) GasPrice() *big.Int

GasPrice mocks base method.

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

func (m *MockTxPool) StartSpamThrottler(arg0 *blockchain.ThrottlerConfig) error

StartSpamThrottler mocks base method.

func (*MockTxPool) Stats

func (m *MockTxPool) Stats() (int, int)

Stats mocks base method.

func (*MockTxPool) Stop

func (m *MockTxPool) Stop()

Stop mocks base method.

func (*MockTxPool) StopSpamThrottler

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL