electrum

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

commit c5b8706225ad028f3fd306928088b48a7b830ecb
parent 6bf48d0506a36846895d8410a4d9f0db54ffb1d6
Author: ThomasV <thomasv@electrum.org>
Date:   Tue, 27 Nov 2018 18:34:36 +0100

simplify test

Diffstat:
Melectrum/wallet.py | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/electrum/wallet.py b/electrum/wallet.py @@ -272,9 +272,9 @@ class Abstract_Wallet(AddressSynchronizer): else: # avoid saving empty dict return True - if ccy not in self.fiat_value: - self.fiat_value[ccy] = {} - if not reset: + else: + if ccy not in self.fiat_value: + self.fiat_value[ccy] = {} self.fiat_value[ccy][txid] = text self.storage.put('fiat_value', self.fiat_value) return reset