mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 23:04:35 +01:00
test_txprepare: skip over fee outputs (elements)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user