mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
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.
This commit is contained in:
parent
b33a229457
commit
9587a2259f
@ -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
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user