mempool

package
v2.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: 13 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, mempoolResp MempoolResp) (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 BitcoinConf

type BitcoinConf struct {
	Rpcconnect string
	Rpcuser    string
	Rpcpasswd  string
	Rpcport    int
}

func (BitcoinConf) GetMempoolEntry

func (b BitcoinConf) GetMempoolEntry(txid string) (resp MempoolResp, err error)

func (BitcoinConf) Getrawmempool

func (b BitcoinConf) Getrawmempool() (resp []string, err error)

func (BitcoinConf) GetrawmempoolVerbose

func (b BitcoinConf) GetrawmempoolVerbose() (resp map[string]MempoolResp, err error)

type Job

type Job struct {
	Cli   BitcoinConf
	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 MempoolResp

type MempoolResp struct {
	Fee     float64  `json:"fee"`
	Time    int64    `json:"time"`
	Height  int64    `json:"height"`
	Depends []string `json:"depends"`
}

func GetMementry

func GetMementry(db *leveldb.DB, txid string) (mempoolResp MempoolResp, 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)

Jump to

Keyboard shortcuts

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