Documentation
¶
Index ¶
- type BlockChain
- type SubPool
- func (_m *SubPool) Add(txs []*types.Transaction, sync bool) []error
- func (_m *SubPool) Clear()
- func (_m *SubPool) Close() error
- func (_m *SubPool) Content() (map[common.Address][]*types.Transaction, ...)
- func (_m *SubPool) ContentFrom(addr common.Address) ([]*types.Transaction, []*types.Transaction)
- func (_m *SubPool) Filter(tx *types.Transaction) bool
- func (_m *SubPool) Get(hash common.Hash) *types.Transaction
- func (_m *SubPool) GetBlobs(vhashes []common.Hash) ([]*kzg4844.Blob, []*kzg4844.Proof)
- func (_m *SubPool) GetMetadata(hash common.Hash) *txpool.TxMetadata
- func (_m *SubPool) GetRLP(hash common.Hash) []byte
- func (_m *SubPool) Has(hash common.Hash) bool
- func (_m *SubPool) Init(gasTip uint64, head *types.Header, reserver txpool.Reserver) error
- func (_m *SubPool) Nonce(addr common.Address) uint64
- func (_m *SubPool) Pending(filter txpool.PendingFilter) map[common.Address][]*txpool.LazyTransaction
- func (_m *SubPool) RemoveTx(hash common.Hash, outofbound bool, unreserve bool) int
- func (_m *SubPool) Reset(oldHead *types.Header, newHead *types.Header)
- func (_m *SubPool) SetGasTip(tip *big.Int)
- func (_m *SubPool) Stats() (int, int)
- func (_m *SubPool) Status(hash common.Hash) txpool.TxStatus
- func (_m *SubPool) SubscribeTransactions(ch chan<- core.NewTxsEvent, reorgs bool) event.Subscription
- func (_m *SubPool) ValidateTxBasics(tx *types.Transaction) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockChain ¶
BlockChain is an autogenerated mock type for the BlockChain type
func NewBlockChain ¶
func NewBlockChain(t interface {
mock.TestingT
Cleanup(func())
}) *BlockChain
NewBlockChain creates a new instance of BlockChain. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*BlockChain) Config ¶
func (_m *BlockChain) Config() *params.ChainConfig
Config provides a mock function with no fields
func (*BlockChain) CurrentBlock ¶
func (_m *BlockChain) CurrentBlock() *types.Header
CurrentBlock provides a mock function with no fields
func (*BlockChain) SubscribeChainHeadEvent ¶
func (_m *BlockChain) SubscribeChainHeadEvent(ch chan<- core.ChainHeadEvent) event.Subscription
SubscribeChainHeadEvent provides a mock function with given fields: ch
type SubPool ¶
SubPool is an autogenerated mock type for the SubPool type
func NewSubPool ¶
NewSubPool creates a new instance of SubPool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SubPool) Add ¶
func (_m *SubPool) Add(txs []*types.Transaction, sync bool) []error
Add provides a mock function with given fields: txs, sync
func (*SubPool) Content ¶
func (_m *SubPool) Content() (map[common.Address][]*types.Transaction, map[common.Address][]*types.Transaction)
Content provides a mock function with no fields
func (*SubPool) ContentFrom ¶
func (_m *SubPool) ContentFrom(addr common.Address) ([]*types.Transaction, []*types.Transaction)
ContentFrom provides a mock function with given fields: addr
func (*SubPool) Filter ¶
func (_m *SubPool) Filter(tx *types.Transaction) bool
Filter provides a mock function with given fields: tx
func (*SubPool) Get ¶
func (_m *SubPool) Get(hash common.Hash) *types.Transaction
Get provides a mock function with given fields: hash
func (*SubPool) GetMetadata ¶
func (_m *SubPool) GetMetadata(hash common.Hash) *txpool.TxMetadata
GetMetadata provides a mock function with given fields: hash
func (*SubPool) Pending ¶
func (_m *SubPool) Pending(filter txpool.PendingFilter) map[common.Address][]*txpool.LazyTransaction
Pending provides a mock function with given fields: filter
func (*SubPool) RemoveTx ¶
RemoveTx provides a mock function with given fields: hash, outofbound, unreserve
func (*SubPool) SubscribeTransactions ¶
func (_m *SubPool) SubscribeTransactions(ch chan<- core.NewTxsEvent, reorgs bool) event.Subscription
SubscribeTransactions provides a mock function with given fields: ch, reorgs
func (*SubPool) ValidateTxBasics ¶
func (_m *SubPool) ValidateTxBasics(tx *types.Transaction) error
ValidateTxBasics provides a mock function with given fields: tx