From 4311c658d0b678621df7210829dc2d1df85abc70 Mon Sep 17 00:00:00 2001 From: niftynei Date: Wed, 9 Sep 2020 17:39:01 -0500 Subject: [PATCH] test_txprepare: skip over fee outputs (elements) --- tests/test_wallet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_wallet.py b/tests/test_wallet.py index 1f3b02fda..f47ae4103 100644 --- a/tests/test_wallet.py +++ b/tests/test_wallet.py @@ -367,6 +367,8 @@ def test_txprepare(node_factory, bitcoind, chainparams): assert len(decode['vout']) == 3 if chainparams['feeoutput'] else 2 # Change output pos is random. for vout in decode['vout']: + if vout['scriptPubKey']['type'] == 'fee': + continue if vout['scriptPubKey']['addresses'] == [addr]: changeout = vout