Versions in this module Expand all Collapse all v0 v0.0.3 Feb 7, 2021 Changes in this version + const CoinbaseFlags + const GeneratedBlockVersion + const GeneratedBlockVersionTest + func BlockVersion(net protocol.Network) uint32 + func MedianAdjustedTime(bc *blockchain.BlockChain, timeSource blockchain.MedianTimeSource) time.Time + func MinimumMedianTime(bc *blockchain.BlockChain) time.Time + func NewBlockTemplate(policy *Policy, params *params.Params, sigCache *txscript.SigCache, ...) (*types.BlockTemplate, error) + func UpdateBlockTime(msgBlock *types.Block, chain *blockchain.BlockChain, ...) error + type MiningErrorCode int + const ErrCheckBlockSanity + const ErrCheckConnectBlock + const ErrCoinbaseLengthOverflow + const ErrCreatingCoinbase + const ErrFailedToGetGeneration + const ErrFetchTxStore + const ErrFraudProofIndex + const ErrGetStakeDifficulty + const ErrGetTopBlock + const ErrGettingDifficulty + const ErrGettingMedianTime + const ErrNotEnoughVoters + const ErrTransactionAppend + func (e MiningErrorCode) String() string + type MiningRuleError struct + Description string + ErrorCode MiningErrorCode + func (e MiningRuleError) Error() string + func (e MiningRuleError) GetCode() MiningErrorCode + type Policy struct + BlockMaxSize uint32 + BlockMinSize uint32 + BlockPrioritySize uint32 + StandardVerifyFlags func() (txscript.ScriptFlags, error) + TxMinFreeFee int64 + type TxSource interface + HaveAllTransactions func(hashes []hash.Hash) bool + HaveTransaction func(hash *hash.Hash) bool + LastUpdated func() time.Time + MiningDescs func() []*types.TxDesc + type WeightedRandQueue struct + func (wq *WeightedRandQueue) Len() int + func (wq *WeightedRandQueue) Pop() *WeightedRandTx + func (wq *WeightedRandQueue) Push(tx *WeightedRandTx) + type WeightedRandTx struct