Versions in this module Expand all Collapse all v1 v1.0.0 Jun 9, 2023 Changes in this version + func AdjustedSimnetMiner(ctx context.Context, client *rpcclient.Client, nb uint32) ([]*chainhash.Hash, error) + func AdjustedSimnetMinerForClient(c *rpcclient.Client) func(ctx context.Context, nb uint32) ([]*chainhash.Hash, error) + func ConnectNode(ctx context.Context, from *Harness, to *Harness) error + func JoinNodes(ctx context.Context, nodes []*Harness, joinType JoinType) error + func NodesConnected(ctx context.Context, from, to *Harness, allowReverse bool) (bool, error) + func RemoveNode(ctx context.Context, from *Harness, to *Harness) error + func SetPathToDCRD(fnScopePathToDCRD string) + type Harness struct + ActiveNet *chaincfg.Params + Node *rpcclient.Client + func New(t *testing.T, activeNet *chaincfg.Params, ...) (*Harness, error) + func (h *Harness) ConfirmedBalance() dcrutil.Amount + func (h *Harness) CreateTransaction(ctx context.Context, targetOutputs []*wire.TxOut, feeRate dcrutil.Amount) (*wire.MsgTx, error) + func (h *Harness) NewAddress(ctx context.Context) (stdaddr.Address, error) + func (h *Harness) P2PAddress() string + func (h *Harness) RPCConfig() rpcclient.ConnConfig + func (h *Harness) SendOutputs(ctx context.Context, targetOutputs []*wire.TxOut, feeRate dcrutil.Amount) (*chainhash.Hash, error) + func (h *Harness) SetUp(ctx context.Context, createTestChain bool, numMatureOutputs uint32) error + func (h *Harness) TearDown() error + func (h *Harness) TearDownInTest(t testing.TB) + func (h *Harness) UnlockOutputs(inputs []*wire.TxIn) + 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) LimitNbVotes(newLimit int) 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(ctx context.Context) error + func (w *VotingWallet) VoteForTSpends(votes []*stake.TreasuryVoteTuple)