Browse Source

elements,tests: skip over fee type outputs

They don't contain addresses
paymod-04
niftynei 5 years ago
committed by Rusty Russell
parent
commit
bea05b1250
  1. 2
      tests/test_wallet.py

2
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

Loading…
Cancel
Save