Documentation
¶
Index ¶
- type Config
- type Mempool
- func (mempool *Mempool) FetchTxs() []*blockchain.Tx
- func (mempool *Mempool) FindTxByHash(hash *utils.Hash) *blockchain.Tx
- func (mempool *Mempool) ProcessOrphans(tx *blockchain.Tx) []*utils.Hash
- func (mempool *Mempool) ProcessTx(tx *blockchain.Tx) []*utils.Hash
- func (mempool *Mempool) RemoveTx(tx *blockchain.Tx)
- func (mempool *Mempool) Start() error
- func (mempool *Mempool) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { FetchUtxos func(tx *blockchain.Tx) (*blockchain.Utxos, []*network.Outpoint, error) OnAcceptedTx func(tx *blockchain.Tx) error }
type Mempool ¶
type Mempool struct {
// contains filtered or unexported fields
}
func NewMempool ¶
func (*Mempool) FetchTxs ¶
func (mempool *Mempool) FetchTxs() []*blockchain.Tx
func (*Mempool) FindTxByHash ¶
func (mempool *Mempool) FindTxByHash(hash *utils.Hash) *blockchain.Tx
func (*Mempool) ProcessOrphans ¶
func (mempool *Mempool) ProcessOrphans(tx *blockchain.Tx) []*utils.Hash
func (*Mempool) RemoveTx ¶
func (mempool *Mempool) RemoveTx(tx *blockchain.Tx)
Click to show internal directories.
Click to hide internal directories.