Documentation ¶
Index ¶
- type Config
- type MockTxPool
- func (m *MockTxPool) AppendTx(trx *tx.Tx) error
- func (m *MockTxPool) AppendTxAndBroadcast(trx *tx.Tx) error
- func (m *MockTxPool) HasTx(id tx.ID) bool
- func (m *MockTxPool) PendingTx(id tx.ID) *tx.Tx
- func (m *MockTxPool) PrepareBlockTransactions() block.Txs
- func (m *MockTxPool) QueryTx(id tx.ID) *tx.Tx
- func (m *MockTxPool) RemoveTx(_ hash.Hash)
- func (m *MockTxPool) SetNewSandboxAndRecheck(_ sandbox.Sandbox)
- func (m *MockTxPool) Size() int
- func (m *MockTxPool) String() string
- type Reader
- type TxPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
MaxSize int `toml:"max_size"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
func (*Config) BasicCheck ¶ added in v0.15.0
BasicCheck performs basic checks on the configuration.
type MockTxPool ¶
MockTxPool is a testing mock.
func MockingTxPool ¶
func MockingTxPool() *MockTxPool
func (*MockTxPool) AppendTxAndBroadcast ¶
func (m *MockTxPool) AppendTxAndBroadcast(trx *tx.Tx) error
func (*MockTxPool) PrepareBlockTransactions ¶
func (m *MockTxPool) PrepareBlockTransactions() block.Txs
func (*MockTxPool) RemoveTx ¶
func (m *MockTxPool) RemoveTx(_ hash.Hash)
func (*MockTxPool) SetNewSandboxAndRecheck ¶
func (m *MockTxPool) SetNewSandboxAndRecheck(_ sandbox.Sandbox)
func (*MockTxPool) Size ¶
func (m *MockTxPool) Size() int
func (*MockTxPool) String ¶ added in v0.15.0
func (m *MockTxPool) String() string
Click to show internal directories.
Click to hide internal directories.