Versions in this module Expand all Collapse all v0 v0.0.1 May 24, 2021 Changes in this version + const CoinbaseFlags + const MinHighPriority + const UnminedHeight + func CalcPriority(tx *wire.MsgTx, utxoView *blockchain.UtxoViewpoint, nextBlockHeight int32) float64 + func DisableLog() + func MinimumMedianTime(chainState *blockchain.BestState) time.Time + func UseLogger(logger btclog.Logger) + type BlkTmplGenerator struct + func NewBlkTmplGenerator(policy *Policy, params *chaincfg.Params, txSource TxSource, ...) *BlkTmplGenerator + func (g *BlkTmplGenerator) BestSnapshot() *blockchain.BestState + func (g *BlkTmplGenerator) NewBlockTemplate(payToAddress btcutil.Address) (*BlockTemplate, error) + func (g *BlkTmplGenerator) TxSource() TxSource + func (g *BlkTmplGenerator) UpdateBlockTime(msgBlock *wire.MsgBlock) error + func (g *BlkTmplGenerator) UpdateExtraNonce(msgBlock *wire.MsgBlock, blockHeight int32, extraNonce uint64) error + type BlockTemplate struct + Block *wire.MsgBlock + Fees []int64 + Height int32 + SigOpCosts []int64 + ValidPayAddress bool + WitnessCommitment []byte + type Policy struct + BlockMaxSize uint32 + BlockMaxWeight uint32 + BlockMinSize uint32 + BlockMinWeight uint32 + BlockPrioritySize uint32 + TxMinFreeFee btcutil.Amount + type TxDesc struct + Added time.Time + Fee int64 + FeePerKB int64 + Height int32 + Tx *btcutil.Tx + type TxSource interface + HaveTransaction func(hash *chainhash.Hash) bool + LastUpdated func() time.Time + MiningDescs func() []*TxDesc