mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
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
|
||||
// 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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user