electrum

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

commit 89ecc85c64fc3e410741daa71d946d43dbc970ec
parent c65974b7d0f908d9e1fb893963a001cb4d9177cf
Author: ThomasV <thomasv@electrum.org>
Date:   Fri, 18 Dec 2020 14:30:47 +0100

convert_version_24: loop over list instead of dict items (see #6863 and #6349)

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 @@ -524,7 +524,7 @@ class WalletDB(JsonDB): self.data['channels'] = { x['channel_id']: x for x in channels } # convert txi & txo txi = self.get('txi', {}) - for tx_hash, d in txi.items(): + for tx_hash, d in list(txi.items()): d2 = {} for addr, l in d.items(): d2[addr] = {} @@ -533,7 +533,7 @@ class WalletDB(JsonDB): txi[tx_hash] = d2 self.data['txi'] = txi txo = self.get('txo', {}) - for tx_hash, d in txo.items(): + for tx_hash, d in list(txo.items()): d2 = {} for addr, l in d.items(): d2[addr] = {}