From bea05b12500fb82f455a100360a18d150ead45f4 Mon Sep 17 00:00:00 2001 From: niftynei Date: Fri, 10 Jul 2020 18:29:57 -0500 Subject: [PATCH] elements,tests: skip over fee type outputs They don't contain addresses --- tests/test_wallet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_wallet.py b/tests/test_wallet.py index 5a76f2703..dc4f1e394 100644 --- a/tests/test_wallet.py +++ b/tests/test_wallet.py @@ -474,6 +474,8 @@ def test_reserveinputs(node_factory, bitcoind, chainparams): # We should have two outputs for vout in psbt['tx']['vout']: + if chainparams['elements'] and vout['scriptPubKey']['type'] == 'fee': + continue if vout['scriptPubKey']['addresses'][0] == addr: assert vout['value'] == sent out_found = True