Versions in this module Expand all Collapse all v3 v3.1.0 May 12, 2022 Changes in this version + func IsSolved(header *wire.BlockHeader) bool + func PurchaseCommitmentScript(addr dcrutil.Address, amount, voteFeeLimit, revocationFeeLimit dcrutil.Amount) []byte + func ReplaceBlockVersion(newVersion int32) func(*wire.MsgBlock) + func ReplaceStakeVersion(newVersion uint32) func(*wire.MsgBlock) + func ReplaceVoteVersions(newVersion uint32) func(*wire.MsgBlock) + func ReplaceVotes(voteBits uint16, newVersion uint32) func(*wire.MsgBlock) + func UniqueOpReturnScript() []byte + func VoteCommitmentScript(hash chainhash.Hash, height uint32) []byte + type Generator struct + func MakeGenerator(params *chaincfg.Params) (Generator, error) + func (g *Generator) AssertBlockRevocationTx(b *wire.MsgBlock, txIndex uint32) + func (g *Generator) AssertBlockVersion(expected int32) + func (g *Generator) AssertPoolSize(expected uint32) + func (g *Generator) AssertScriptSigOpsCount(script []byte, expected int) + func (g *Generator) AssertStakeVersion(expected uint32) + func (g *Generator) AssertTipBlockHash(expected chainhash.Hash) + func (g *Generator) AssertTipBlockMerkleRoot(expected chainhash.Hash) + func (g *Generator) AssertTipBlockNumTxns(expected int) + func (g *Generator) AssertTipBlockSigOpsCount(expected int) + func (g *Generator) AssertTipBlockSize(expected int) + func (g *Generator) AssertTipBlockStakeRoot(expected chainhash.Hash) + func (g *Generator) AssertTipBlockTxOutOpReturn(txIndex, txOutIndex uint32) + func (g *Generator) AssertTipDisapprovesPrevious() + func (g *Generator) AssertTipHeight(expected uint32) + func (g *Generator) AssertTipNumRevocations(expected uint8) + func (g *Generator) BlockByHash(hash *chainhash.Hash) *wire.MsgBlock + func (g *Generator) BlockByName(blockName string) *wire.MsgBlock + func (g *Generator) CalcNextReqStakeDifficulty(prevBlock *wire.MsgBlock) int64 + func (g *Generator) CalcNextRequiredDifficulty() uint32 + func (g *Generator) CalcNextRequiredStakeDifficulty() int64 + func (g *Generator) CreateBlockOne(blockName string, additionalAmount dcrutil.Amount, ...) *wire.MsgBlock + func (g *Generator) CreateCoinbaseTx(blockHeight uint32, numVotes uint16) *wire.MsgTx + func (g *Generator) CreateRevocationTx(ticketTx *wire.MsgTx, ticketBlockHeight, ticketBlockIndex uint32) *wire.MsgTx + func (g *Generator) CreateSpendTx(spend *SpendableOut, fee dcrutil.Amount) *wire.MsgTx + func (g *Generator) CreateSpendTxForTx(tx *wire.MsgTx, blockHeight, txIndex uint32, fee dcrutil.Amount) *wire.MsgTx + func (g *Generator) CreateTicketPurchaseTx(spend *SpendableOut, ticketPrice, fee dcrutil.Amount) *wire.MsgTx + func (g *Generator) CreateVoteTx(voteBlock *wire.MsgBlock, ticketTx *wire.MsgTx, ...) *wire.MsgTx + func (g *Generator) NextBlock(blockName string, spend *SpendableOut, ticketSpends []SpendableOut, ...) *wire.MsgBlock + func (g *Generator) NumSpendableCoinbaseOuts() int + func (g *Generator) OldestCoinbaseOuts() []SpendableOut + func (g *Generator) P2shOpTrueAddr() dcrutil.Address + func (g *Generator) Params() *chaincfg.Params + func (g *Generator) ReplaceVoteBitsN(voteNum int, voteBits uint16) func(*wire.MsgBlock) + func (g *Generator) ReplaceWithNVotes(numVotes uint16) func(*wire.MsgBlock) + func (g *Generator) SaveSpendableCoinbaseOuts() + func (g *Generator) SaveTipCoinbaseOuts() + func (g *Generator) SetTip(blockName string) + func (g *Generator) Tip() *wire.MsgBlock + func (g *Generator) TipName() string + func (g *Generator) UpdateBlockState(oldBlockName string, oldBlockHash chainhash.Hash, newBlockName string, ...) + type SpendableOut struct + func MakeSpendableOut(block *wire.MsgBlock, txIndex, txOutIndex uint32) SpendableOut + func MakeSpendableOutForSTx(tx *wire.MsgTx, blockHeight, txIndex, txOutIndex uint32) SpendableOut + func MakeSpendableOutForTx(tx *wire.MsgTx, blockHeight, txIndex, txOutIndex uint32) SpendableOut + func MakeSpendableStakeOut(block *wire.MsgBlock, txIndex, txOutIndex uint32) SpendableOut + func (s *SpendableOut) Amount() dcrutil.Amount + func (s *SpendableOut) BlockHeight() uint32 + func (s *SpendableOut) BlockIndex() uint32 + func (s *SpendableOut) PrevOut() wire.OutPoint Other modules containing this package github.com/Decred-Next/dcrnd github.com/Decred-Next/dcrnd/blockchain/v8