From eec5dfe6aa4bdd314befe477f9bcad59be6a7721 Mon Sep 17 00:00:00 2001 From: niftynei Date: Fri, 10 Jul 2020 16:12:03 -0500 Subject: [PATCH] elements: update output amounts for elements test The amount we expect back, post change, is different for an elements tx --- tests/test_wallet.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_wallet.py b/tests/test_wallet.py index bc1451ddc..5a76f2703 100644 --- a/tests/test_wallet.py +++ b/tests/test_wallet.py @@ -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)