From 9587a2259ffca9b76e733164aeffa2849d9ce354 Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Tue, 29 Oct 2019 19:32:40 -0700 Subject: [PATCH] lnwallet: fix test inconsistencies to support bitcoind 0.19.0 bitcoind's sendrawtransaction API in v0.19.0 now enforces a maximum fee rate of 0.1 BTC/kb and valid output scripts. --- lnwallet/interface_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lnwallet/interface_test.go b/lnwallet/interface_test.go index 7e95fda44..8f8e1748f 100644 --- a/lnwallet/interface_test.go +++ b/lnwallet/interface_test.go @@ -1386,7 +1386,7 @@ func testTransactionSubscriptions(miner *rpctest.Harness, // notifications when we _create_ transactions ourselves that spend our // own outputs. b := txscript.NewScriptBuilder() - b.AddOp(txscript.OP_0) + b.AddOp(txscript.OP_RETURN) outputScript, err := b.Script() if err != nil { t.Fatalf("unable to make output script: %v", err) @@ -1595,7 +1595,7 @@ func newTx(t *testing.T, r *rpctest.Harness, pubKey *btcec.PublicKey, } // Create a new unconfirmed tx that spends this output. - txFee := btcutil.Amount(0.1 * btcutil.SatoshiPerBitcoin) + txFee := btcutil.Amount(0.001 * btcutil.SatoshiPerBitcoin) tx1, err := txFromOutput( tx, alice.Cfg.Signer, pubKey, pubKey, txFee, rbf, ) @@ -1672,7 +1672,7 @@ func testPublishTransaction(r *rpctest.Harness, // We'll do the next mempool check on both RBF and non-RBF enabled // transactions. var ( - txFee = btcutil.Amount(0.05 * btcutil.SatoshiPerBitcoin) + txFee = btcutil.Amount(0.005 * btcutil.SatoshiPerBitcoin) tx3, tx3Spend *wire.MsgTx )