Versions in this module Expand all Collapse all v0 v0.1.0 Jul 19, 2018 Changes in this version + 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 + type Generator struct + func MakeGenerator(params *chaincfg.Params) (Generator, error) + func (g *Generator) AssertBlockVersion(expected int32) + 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) AssertTipBlockTxOutOpReturn(txIndex, txOutIndex uint32) + func (g *Generator) AssertTipHeight(expected uint32) + func (g *Generator) BlockByHash(hash *chainhash.Hash) *wire.MsgBlock + func (g *Generator) BlockByName(blockName string) *wire.MsgBlock + func (g *Generator) CreateCoinbaseTx(blockHeight uint32, numVotes uint16) *wire.MsgTx + func (g *Generator) CreatePremineBlock(blockName string, additionalAmount hcutil.Amount) *wire.MsgBlock + func (g *Generator) CreateSpendTx(spend *SpendableOut, fee hcutil.Amount) *wire.MsgTx + func (g *Generator) CreateSpendTxForTx(tx *wire.MsgTx, blockHeight, txIndex uint32, fee hcutil.Amount) *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) Params() *chaincfg.Params + 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 MakeSpendableOutForTx(tx *wire.MsgTx, blockHeight, txIndex, txOutIndex uint32) SpendableOut + func (s *SpendableOut) Amount() hcutil.Amount + func (s *SpendableOut) BlockHeight() uint32 + func (s *SpendableOut) BlockIndex() uint32 + func (s *SpendableOut) PrevOut() wire.OutPoint