electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 317d405432982d2e102d3841ad69cbe75a18466f
parent cc6e461d3e4ab2d02b70ce8e36c1a54968345ef0
Author: ThomasV <thomasv@electrum.org>
Date:   Wed, 19 Feb 2020 11:39:52 +0100

follow-up previous commit

Diffstat:
Melectrum/wallet_db.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/electrum/wallet_db.py b/electrum/wallet_db.py @@ -538,7 +538,7 @@ class WalletDB(JsonDB): if not self._is_upgrade_method_needed(24, 24): return # add 'type' feld to onchain requests - requests = self.data['payment_requests'] + requests = self.data.get('payment_requests', {}) for k, r in list(requests.items()): if r.get('address') == k: requests[k] = { @@ -551,7 +551,7 @@ class WalletDB(JsonDB): 'type': PR_TYPE_ONCHAIN, } # convert bip70 invoices - invoices = self.data['invoices'] + invoices = self.data.get('invoices', {}) for k, r in list(invoices.items()): data = r.get("hex") if data: