Skip to content

Commit

Permalink
lnwallet: fix test inconsistencies to support bitcoind 0.19.0
Browse files Browse the repository at this point in the history
bitcoind's sendrawtransaction API in v0.19.0 now enforces a maximum fee
rate of 0.1 BTC/kb and valid output scripts.
  • Loading branch information
wpaulino committed Oct 30, 2019
1 parent d474ac6 commit 06303af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lnwallet/interface_test.go
Expand Up @@ -1385,7 +1385,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)
Expand Down Expand Up @@ -1594,7 +1594,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,
)
Expand Down Expand Up @@ -1671,7 +1671,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
)

Expand Down

0 comments on commit 06303af

Please sign in to comment.