test: reject non-standard transactions in integration tests
This commit is contained in:
parent
1cbdf6473f
commit
5c6d196ff8
@ -1746,8 +1746,12 @@ func TestLightningNetworkDaemon(t *testing.T) {
|
|||||||
|
|
||||||
// First create an instance of the btcd's rpctest.Harness. This will be
|
// First create an instance of the btcd's rpctest.Harness. This will be
|
||||||
// used to fund the wallets of the nodes within the test network and to
|
// used to fund the wallets of the nodes within the test network and to
|
||||||
// drive blockchain related events within the network.
|
// drive blockchain related events within the network. Revert the default
|
||||||
btcdHarness, err := rpctest.New(harnessNetParams, handlers, nil)
|
// setting of accepting non-standard transactions on simnet to reject them.
|
||||||
|
// Transactions on the lightning network should always be standard to get
|
||||||
|
// better guarantees of getting included in to blocks.
|
||||||
|
args := []string{"--rejectnonstd"}
|
||||||
|
btcdHarness, err := rpctest.New(harnessNetParams, handlers, args)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ht.Fatalf("unable to create mining node: %v", err)
|
ht.Fatalf("unable to create mining node: %v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user