testutils

package
v0.8.4-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2021 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTransaction

func CreateTransaction(txToSpend *externalapi.DomainTransaction) (*externalapi.DomainTransaction, error)

CreateTransaction create a transaction that spends the first output of provided transaction. Assumes that the output being spent has opTrueScript as it's scriptPublicKey Creates the value of the spent output minus 1 sompi

func ForAllNets

func ForAllNets(t *testing.T, skipPow bool, testFunc func(*testing.T, *dagconfig.Params))

ForAllNets runs the passed testFunc with all available networks if setDifficultyToMinumum = true - will modify the net params to have minimal difficulty, like in SimNet

func OpTrueScript

func OpTrueScript() (*externalapi.ScriptPublicKey, []byte)

OpTrueScript returns a P2SH script paying to an anyone-can-spend address, The second return value is a redeemScript to be used with txscript.PayToScriptHashSignatureScript

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL