Versions in this module Expand all Collapse all v1 v1.1.1 Sep 17, 2020 Changes in this version + const BlockVersion + func ConnectNode(from *Harness, to *Harness) error + func JoinNodes(nodes []*Harness, joinType JoinType) error + func NodesConnected(ctx context.Context, from, to *Harness, allowReverse bool) (bool, error) + func PanicAll(t *testing.T) + func RemoveNode(ctx context.Context, from *Harness, to *Harness) error + func TearDownAll() error + type Harness struct + ActiveNet *chaincfg.Params + Node *rpcclient.Client + func ActiveHarnesses() []*Harness + func New(t *testing.T, activeNet *chaincfg.Params, ...) (*Harness, error) + func (h *Harness) ConfirmedBalance() dcrutil.Amount + func (h *Harness) CreateTransaction(targetOutputs []*wire.TxOut, feeRate dcrutil.Amount) (*wire.MsgTx, error) + func (h *Harness) NewAddress() (dcrutil.Address, error) + func (h *Harness) RPCConfig() rpcclient.ConnConfig + func (h *Harness) SendOutputs(targetOutputs []*wire.TxOut, feeRate dcrutil.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(ctx context.Context, r *Harness, t *testing.T) + type JoinType uint8 + const Blocks + const Mempools + type VotingWallet struct + func NewVotingWallet(ctx context.Context, hn *Harness) (*VotingWallet, error) + func (w *VotingWallet) GenerateBlocks(ctx context.Context, nb uint32) ([]*chainhash.Hash, error) + func (w *VotingWallet) SetErrorReporting(f func(err error)) + func (w *VotingWallet) SetMiner(f func(context.Context, uint32) ([]*chainhash.Hash, error)) + func (w *VotingWallet) Start() error + func (w *VotingWallet) Stop()