Versions in this module Expand all Collapse all v0 v0.9.1 Apr 30, 2019 v0.9.0 Apr 29, 2019 Changes in this version + const BlockVersion + func ConnectNode(from *Harness, to *Harness) error + func CreateBlock(prevBlock *util.Block, inclusionTxs []*util.Tx, blockVersion int32, ...) (*util.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() util.Amount + func (h *Harness) CreateTransaction(targetOutputs []*wire.TxOut, feeRate util.Amount, change bool) (*wire.MsgTx, error) + func (h *Harness) GenerateAndSubmitBlock(txns []*util.Tx, blockVersion uint32, blockTime time.Time) (*util.Block, error) + func (h *Harness) GenerateAndSubmitBlockWithCustomCoinbaseOutputs(txns []*util.Tx, blockVersion uint32, blockTime time.Time, mineTo []wire.TxOut) (*util.Block, error) + func (h *Harness) NewAddress() (util.Address, error) + func (h *Harness) P2PAddress() string + func (h *Harness) RPCConfig() rpcclient.ConnConfig + func (h *Harness) SendOutputs(targetOutputs []*wire.TxOut, feeRate util.Amount) (*chainhash.Hash, error) + func (h *Harness) SendOutputsWithoutChange(targetOutputs []*wire.TxOut, feeRate util.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