mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 18:57:06 +01:00
test_txprepare: skip over fee outputs (elements)
This commit is contained in:
parent
4c28e7b362
commit
4311c658d0
1 changed files with 2 additions and 0 deletions
|
@ -367,6 +367,8 @@ def test_txprepare(node_factory, bitcoind, chainparams):
|
||||||
assert len(decode['vout']) == 3 if chainparams['feeoutput'] else 2
|
assert len(decode['vout']) == 3 if chainparams['feeoutput'] else 2
|
||||||
# Change output pos is random.
|
# Change output pos is random.
|
||||||
for vout in decode['vout']:
|
for vout in decode['vout']:
|
||||||
|
if vout['scriptPubKey']['type'] == 'fee':
|
||||||
|
continue
|
||||||
if vout['scriptPubKey']['addresses'] == [addr]:
|
if vout['scriptPubKey']['addresses'] == [addr]:
|
||||||
changeout = vout
|
changeout = vout
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue