Documentation
¶
Index ¶
- type CheckFn
- type Mempool
- func (mp *Mempool) Get(txid types.Hash) *ktypes.Transaction
- func (mp *Mempool) Have(txid types.Hash) bool
- func (mp *Mempool) PeekN(n int) []types.NamedTx
- func (mp *Mempool) PreFetch(txid types.Hash) bool
- func (mp *Mempool) ReapN(n int) []types.NamedTx
- func (mp *Mempool) RecheckTxs(ctx context.Context, fn CheckFn)
- func (mp *Mempool) Remove(txid types.Hash)
- func (mp *Mempool) Size() int
- func (mp *Mempool) Store(txid types.Hash, tx *ktypes.Transaction) (found bool)
- func (mp *Mempool) TxsAvailable() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mempool ¶
type Mempool struct {
// contains filtered or unexported fields
}
func (*Mempool) Store ¶
Store adds a transaction to the mempool. If the transaction is already in the mempool, it returns true indicating that the transaction is already in the mempool.
func (*Mempool) TxsAvailable ¶
Click to show internal directories.
Click to hide internal directories.