Versions in this module Expand all Collapse all v0 v0.0.1 Dec 19, 2019 Changes in this version + const BlockVersion + func ConnectNode(from *Harness, to *Harness) error + func CreateBlock(prevBlock *btcutil.Block, inclusionTxs []*btcutil.Tx, blockVersion int32, ...) (*btcutil.Block, error) + func JoinNodes(nodes []*Harness, joinType JoinType) error + func TearDownAll() error + type Harness struct + ActiveNet *chaincfg.Params + Node *rpcclient.Client + func ActiveHarnesses() []*Harness + func New(activeNet *chaincfg.Params, handlers *rpcclient.NotificationHandlers, ...) (*Harness, error) + func (h *Harness) ConfirmedBalance() btcutil.Amount + func (h *Harness) CreateTransaction(targetOutputs []*wire.TxOut, feeRate btcutil.Amount, change bool) (*wire.MsgTx, error) + func (h *Harness) GenerateAndSubmitBlock(txns []*btcutil.Tx, blockVersion int32, blockTime time.Time) (*btcutil.Block, error) + func (h *Harness) GenerateAndSubmitBlockWithCustomCoinbaseOutputs(txns []*btcutil.Tx, blockVersion int32, blockTime time.Time, ...) (*btcutil.Block, error) + func (h *Harness) NewAddress() (btcutil.Address, error) + func (h *Harness) P2PAddress() string + func (h *Harness) RPCConfig() rpcclient.ConnConfig + func (h *Harness) SendOutputs(targetOutputs []*wire.TxOut, feeRate btcutil.Amount) (*chainhash.Hash, error) + func (h *Harness) SendOutputsWithoutChange(targetOutputs []*wire.TxOut, feeRate btcutil.Amount) (*chainhash.Hash, error) + func (h *Harness) SetUp(createTestChain bool, numMatureOutputs uint32) error + func (h *Harness) TearDown() error + func (h *Harness) UnlockOutputs(inputs []*wire.TxIn) + type HarnessTestCase func(r *Harness, t *testing.T) + type JoinType uint8 + const Blocks + const Mempools