1
0
This commit is contained in:
ThomasV
2021-04-02 15:04:44 +02:00
parent 92226b077a
commit 73482bb335

View File

@@ -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)