electrum

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

commit beee880dbaaac7680c923e823b238b2fd78bf1ce
parent 9734546fe9cd2df32ea89425c37e6499b31eab7b
Author: ThomasV <thomasv@electrum.org>
Date:   Wed, 12 Feb 2020 14:19:31 +0100

fix data_loss_protect (missing return, json conversion)

Diffstat:
Melectrum/lnchannel.py | 2+-
Melectrum/wallet_db.py | 2++
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/electrum/lnchannel.py b/electrum/lnchannel.py @@ -153,7 +153,7 @@ class Channel(Logger): self.data_loss_protect_remote_pcp[key] = value def get_data_loss_protect_remote_pcp(self, key): - self.data_loss_protect_remote_pcp.get(key) + return self.data_loss_protect_remote_pcp.get(key) def set_remote_update(self, raw): self.storage['remote_update'] = raw.hex() diff --git a/electrum/wallet_db.py b/electrum/wallet_db.py @@ -971,6 +971,8 @@ class WalletDB(JsonDB): v = dict((k, {(prevout, value) for (prevout, value) in x}) for k, x in v.items()) elif key == 'buckets': v = dict((k, ShachainElement(bfh(x[0]), int(x[1]))) for k, x in v.items()) + elif key == 'data_loss_protect_remote_pcp': + v = dict((k, bfh(x)) for k, x in v.items()) return v def _convert_value(self, path, key, v):