mempool

package
v0.0.0-...-509fca3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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 NewMempool(config *Config) *Mempool

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) ProcessTx

func (mempool *Mempool) ProcessTx(tx *blockchain.Tx) []*utils.Hash

func (*Mempool) RemoveTx

func (mempool *Mempool) RemoveTx(tx *blockchain.Tx)

func (*Mempool) Start

func (mempool *Mempool) Start() error

func (*Mempool) Stop

func (mempool *Mempool) Stop() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL