Browse Source

Merge pull request #5604 from MrNaif2018/master

Fix for onchain_history summary building
dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
ThomasV 5 years ago
committed by GitHub
parent
commit
d5691129bb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .gitignore
  2. 4
      electrum/wallet.py

2
.gitignore

@ -14,6 +14,8 @@ env/
bin/ bin/
/app.fil /app.fil
.idea .idea
.mypy_cache
.vscode
# icons # icons
electrum/gui/kivy/theming/light-0.png electrum/gui/kivy/theming/light-0.png

4
electrum/wallet.py

@ -633,9 +633,9 @@ class Abstract_Wallet(AddressSynchronizer):
out.append(item) out.append(item)
# add summary # add summary
if out: if out:
b, v = out[0]['balance'].value, out[0]['bc_value'].value b, v = out[0]['bc_balance'].value, out[0]['bc_value'].value
start_balance = None if b is None or v is None else b - v start_balance = None if b is None or v is None else b - v
end_balance = out[-1]['balance'].value end_balance = out[-1]['bc_balance'].value
if from_timestamp is not None and to_timestamp is not None: if from_timestamp is not None and to_timestamp is not None:
start_date = timestamp_to_datetime(from_timestamp) start_date = timestamp_to_datetime(from_timestamp)
end_date = timestamp_to_datetime(to_timestamp) end_date = timestamp_to_datetime(to_timestamp)

Loading…
Cancel
Save