mempool

package
v0.0.0-...-a039820 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlockReward

func GetBlockReward(baseReward, medianWeight, fees, weight uint64) uint64

Types

type Mempool

type Mempool []*MempoolEntry

func (Mempool) Fees

func (m Mempool) Fees() (r uint64)

func (Mempool) PerfectSum

func (m Mempool) PerfectSum(targetFee uint64) chan Mempool

func (Mempool) Pick

func (m Mempool) Pick(baseReward, minerTxWeight, medianWeight uint64) Mempool

func (Mempool) Sort

func (m Mempool) Sort()

func (Mempool) Weight

func (m Mempool) Weight() (r uint64)

func (Mempool) WeightAndFees

func (m Mempool) WeightAndFees() (weight, fees uint64)

type MempoolEntry

type MempoolEntry struct {
	Id       types.Hash
	BlobSize uint64
	Weight   uint64
	Fee      uint64
}

func NewEntryFromRPCData

func NewEntryFromRPCData(id types.Hash, buf []byte, json *daemon.TransactionJSON) *MempoolEntry

func (*MempoolEntry) Compare

func (t *MempoolEntry) Compare(o *MempoolEntry) int

Compare returns -1 if self is preferred over o, 0 if equal, 1 if o is preferred over self

Jump to

Keyboard shortcuts

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