Documentation
¶
Index ¶
- type AppendError
- type Config
- type ConfigError
- type MockTxPool
- func (m *MockTxPool) AppendTx(trx *tx.Tx) error
- func (m *MockTxPool) AppendTxAndBroadcast(trx *tx.Tx) error
- func (*MockTxPool) EstimatedFee(_ amount.Amount, _ payload.Type) amount.Amount
- 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 (*MockTxPool) RemoveTx(_ hash.Hash)
- func (*MockTxPool) SetNewSandboxAndRecheck(_ sandbox.Sandbox)
- func (m *MockTxPool) Size() int
- func (*MockTxPool) String() string
- type Reader
- type TxPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppendError ¶ added in v1.1.3
type AppendError struct {
Err error
}
AppendError is returned when the txPool configuration is invalid.
func (AppendError) Error ¶ added in v1.1.3
func (e AppendError) Error() string
type Config ¶
func DefaultConfig ¶
func DefaultConfig() *Config
func (*Config) BasicCheck ¶ added in v0.15.0
BasicCheck performs basic checks on the configuration.
type ConfigError ¶ added in v1.1.0
type ConfigError struct {
Reason string
}
ConfigError is returned when the txPool configuration is invalid.
func (ConfigError) Error ¶ added in v1.1.0
func (e ConfigError) Error() string
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) EstimatedFee ¶ added in v1.1.6
func (*MockTxPool) PrepareBlockTransactions ¶
func (m *MockTxPool) PrepareBlockTransactions() block.Txs
func (*MockTxPool) RemoveTx ¶
func (*MockTxPool) RemoveTx(_ hash.Hash)
func (*MockTxPool) SetNewSandboxAndRecheck ¶
func (*MockTxPool) SetNewSandboxAndRecheck(_ sandbox.Sandbox)
func (*MockTxPool) Size ¶
func (m *MockTxPool) Size() int
func (*MockTxPool) String ¶ added in v0.15.0
func (*MockTxPool) String() string
Click to show internal directories.
Click to hide internal directories.