elements: update output amounts for elements test

The amount we expect back, post change, is different for an elements tx
This commit is contained in:
niftynei 2020-07-10 16:12:03 -05:00 committed by Rusty Russell
parent f5f85b389d
commit eec5dfe6aa

View file

@ -710,8 +710,13 @@ def test_sign_and_send_psbt(node_factory, bitcoind, chainparams):
# do proper acccounting for it.
{'type': 'chain_mvt', 'credit': 0, 'debit': 4000000000, 'tag': 'withdrawal'},
{'type': 'chain_mvt', 'credit': 0, 'debit': 0, 'tag': 'chain_fees'},
{'type': 'chain_mvt', 'credit': 988285000, 'debit': 0, 'tag': 'deposit'},
]
if chainparams['elements']:
wallet_coin_mvts.append({'type': 'chain_mvt', 'credit': 984625000, 'debit': 0, 'tag': 'deposit'})
else:
wallet_coin_mvts.append({'type': 'chain_mvt', 'credit': 988285000, 'debit': 0, 'tag': 'deposit'})
check_coin_moves(l1, 'wallet', wallet_coin_mvts, chainparams)