diff --git a/electrum/wallet.py b/electrum/wallet.py index 3f5ddb86c..8fb6f0b5c 100644 --- a/electrum/wallet.py +++ b/electrum/wallet.py @@ -925,6 +925,11 @@ class Abstract_Wallet(AddressSynchronizer, ABC): ln_value = Decimal(item['amount_msat']) / 1000 # for channel open/close tx tx_item['ln_value'] = Satoshis(ln_value) else: + if item['type'] == 'swap': + # swap items do not have all the fields. We can skip skip them + # because they will eventually be in onchain_history + # TODO: use attr.s objects instead of dicts + continue transactions_tmp[txid] = item ln_value = Decimal(item['amount_msat']) / 1000 # for channel open/close tx item['ln_value'] = Satoshis(ln_value)