Versions in this module Expand all Collapse all v1 v1.9.25 Mar 25, 2021 v1.9.24 Mar 24, 2021 Changes in this version + const CoinbaseFlags + const MinHighPriority + const UnminedHeight + var D logg.LevelPrinter = logg.GetLogPrinterSet(subsystem) + var E logg.LevelPrinter = logg.GetLogPrinterSet(subsystem) + var F logg.LevelPrinter = logg.GetLogPrinterSet(subsystem) + var I logg.LevelPrinter = logg.GetLogPrinterSet(subsystem) + var T logg.LevelPrinter = logg.GetLogPrinterSet(subsystem) + var W logg.LevelPrinter = logg.GetLogPrinterSet(subsystem) + func CalcPriority(tx *wire.MsgTx, utxoView *blockchain.UtxoViewpoint, nextBlockHeight int32) float64 + func MinimumMedianTime(chainState *blockchain.BestState) time.Time + func RefillMiningAddresses(w *wallet.Wallet, cfg *podcfg.Config, stateCfg *state.Config) + type BlkTmplGenerator struct + Chain *blockchain.BlockChain + ChainParams *chaincfg.Params + HashCache *txscript.HashCache + Policy *Policy + SigCache *txscript.SigCache + TimeSource blockchain.MedianTimeSource + TxSource TxSource + func NewBlkTmplGenerator(policy *Policy, params *chaincfg.Params, txSource TxSource, ...) *BlkTmplGenerator + func (g *BlkTmplGenerator) BestSnapshot() *blockchain.BestState + func (g *BlkTmplGenerator) GetTxSource() TxSource + func (g *BlkTmplGenerator) NewBlockTemplate(payToAddress btcaddr.Address, algo string) (*BlockTemplate, error) + func (g *BlkTmplGenerator) UpdateBlockTime(workerNumber uint32, msgBlock ...) (e error) + func (g *BlkTmplGenerator) UpdateExtraNonce(msgBlock *wire.Block, blockHeight int32, extraNonce uint64) (e error) + type BlockTemplate struct + Block *wire.Block + Fees []int64 + Height int32 + SigOpCosts []int64 + ValidPayAddress bool + WitnessCommitment []byte + type Policy struct + BlockMaxSize uint32 + BlockMaxWeight uint32 + BlockMinSize uint32 + BlockMinWeight uint32 + BlockPrioritySize uint32 + TxMinFreeFee amt.Amount + type TxDesc struct + Added time.Time + Fee int64 + FeePerKB int64 + Height int32 + Tx *util.Tx + type TxSource interface + HaveTransaction func(hash *chainhash.Hash) bool + LastUpdated func() time.Time + MiningDescs func() []*TxDesc