Versions in this module Expand all Collapse all v0 v0.21.1 Mar 12, 2021 Changes in this version + const BlockVersion + const DefaultConnectionRetryTimeout + const DefaultMaxConnectionRetries + var ListenAddressGenerator = generateListeningAddresses + func ConnectNode(from *Harness, to *Harness) error + func CreateBlock(prevBlock *vclutil.Block, inclusionTxs []*vclutil.Tx, blockVersion int32, ...) (*vclutil.Block, error) + func JoinNodes(nodes []*Harness, joinType JoinType) error + func TearDownAll() error + type Harness struct + ActiveNet *chaincfg.Params + BatchClient *rpcclient.Client + Client *rpcclient.Client + ConnectionRetryTimeout time.Duration + MaxConnRetries int + func ActiveHarnesses() []*Harness + func New(activeNet *chaincfg.Params, handlers *rpcclient.NotificationHandlers, ...) (*Harness, error) + func (h *Harness) ConfirmedBalance() vclutil.Amount + func (h *Harness) CreateTransaction(targetOutputs []*wire.TxOut, feeRate vclutil.Amount, change bool) (*wire.MsgTx, error) + func (h *Harness) GenerateAndSubmitBlock(txns []*vclutil.Tx, blockVersion int32, blockTime time.Time) (*vclutil.Block, error) + func (h *Harness) GenerateAndSubmitBlockWithCustomCoinbaseOutputs(txns []*vclutil.Tx, blockVersion int32, blockTime time.Time, ...) (*vclutil.Block, error) + func (h *Harness) NewAddress() (vclutil.Address, error) + func (h *Harness) P2PAddress() string + func (h *Harness) RPCConfig() rpcclient.ConnConfig + func (h *Harness) SendOutputs(targetOutputs []*wire.TxOut, feeRate vclutil.Amount) (*chainhash.Hash, error) + func (h *Harness) SendOutputsWithoutChange(targetOutputs []*wire.TxOut, feeRate vclutil.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