Skip to content

Commit

Permalink
test: reject non-standard transactions in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cjamthagen authored and Roasbeef committed Jan 18, 2017
1 parent 1cbdf64 commit 5c6d196
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lnd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 5c6d196

Please sign in to comment.