mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 18:57:06 +01:00
elements,tests: skip over fee type outputs
They don't contain addresses
This commit is contained in:
parent
eec5dfe6aa
commit
bea05b1250
1 changed files with 2 additions and 0 deletions
|
@ -474,6 +474,8 @@ def test_reserveinputs(node_factory, bitcoind, chainparams):
|
||||||
|
|
||||||
# We should have two outputs
|
# We should have two outputs
|
||||||
for vout in psbt['tx']['vout']:
|
for vout in psbt['tx']['vout']:
|
||||||
|
if chainparams['elements'] and vout['scriptPubKey']['type'] == 'fee':
|
||||||
|
continue
|
||||||
if vout['scriptPubKey']['addresses'][0] == addr:
|
if vout['scriptPubKey']['addresses'][0] == addr:
|
||||||
assert vout['value'] == sent
|
assert vout['value'] == sent
|
||||||
out_found = True
|
out_found = True
|
||||||
|
|
Loading…
Add table
Reference in a new issue