From 5c6d196ff8590c9d1f219561c4235f45b13c14bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20J=C3=A4mthagen?= Date: Fri, 13 Jan 2017 22:32:37 +0100 Subject: [PATCH] test: reject non-standard transactions in integration tests --- lnd_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lnd_test.go b/lnd_test.go index d428b7be5..405ef5d8b 100644 --- a/lnd_test.go +++ b/lnd_test.go @@ -1746,8 +1746,12 @@ func TestLightningNetworkDaemon(t *testing.T) { // 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 - // drive blockchain related events within the network. - btcdHarness, err := rpctest.New(harnessNetParams, handlers, nil) + // drive blockchain related events within the network. Revert the default + // 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 { ht.Fatalf("unable to create mining node: %v", err) }