mempool

package
v0.0.0-...-43e5bce Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMementryTime

func GetMementryTime(db *leveldb.DB, txid string) (entryTime int64, err error)

func IsMementry

func IsMementry(db *leveldb.DB, txid string) bool

func IsMissingTx

func IsMissingTx(db *leveldb.DB, txid string) bool

func SaveMementry

func SaveMementry(db *leveldb.DB, txid string, txentry Txentry) (err error)

func SaveMempoolhist

func SaveMempoolhist(db *leveldb.DB, txid string, uts int64) (err error)

func SaveMissingTx

func SaveMissingTx(db *leveldb.DB, txid string) (err error)

Types

type BitcoinCli

type BitcoinCli struct {
	Dir string
	Bin string
}

func (BitcoinCli) Getmempoolentry

func (b BitcoinCli) Getmempoolentry(txid string, debug bool) (resp Txentry, notin bool, err error)

func (BitcoinCli) Getrawmempool

func (b BitcoinCli) Getrawmempool(debug bool) (resp []string, err error)

func (BitcoinCli) GetrawmempoolVerbose

func (b BitcoinCli) GetrawmempoolVerbose(debug bool) (resp map[string]Txentry, err error)

type Job

type Job struct {
	Cli   BitcoinCli
	DB    *leveldb.DB
	Debug bool
}

func (Job) DownloadMementry

func (j Job) DownloadMementry(progress bool) (err error)

func (Job) DownloadRawMempool

func (j Job) DownloadRawMempool(progress bool) (err error)

type Mempoolhist

type Mempoolhist struct {
	Uts  int64
	Txid string
}

func FindAllMempoolhist

func FindAllMempoolhist(db *leveldb.DB) (hist []Mempoolhist, err error)

func FindMempoolhist

func FindMempoolhist(db *leveldb.DB, start, stop int64, asc bool) (hist []Mempoolhist, err error)

type Txentry

type Txentry struct {
	Fee Txfees `json:"fees"`
	// Vsize             int64    `json:"vsize"`
	// Weight            int64    `json:"weight"`
	Time int64 `json:"time"`
	// Height            int64    `json:"height"`
	// Descendantcount   int64    `json:"descendantcount"`
	// Ancestorcount     int64    `json:"ancestorcount"`
	// Ancestorsize      int64    `json:"ancestorsize"`
	Wtxid string `json:"wtxid"`
	// Bip125Replaceable bool     `json:"bip125-replaceable"`
	// Unbroadcast       bool     `json:"unbroadcast"`
	Depends []string `json:"depends"`
	Spentby []string `json:"Spentby"`
}

func GetMementry

func GetMementry(db *leveldb.DB, txid string) (txentry Txentry, err error)

type Txfees

type Txfees struct {
	Base       float64 `json:"base"`
	Modified   float64 `json:"modified"`
	Ancestor   float64 `json:"ancestor"`
	Descendant float64 `json:"descendant"`
}

Jump to

Keyboard shortcuts

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