tlnsweep: minor fix - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 3349e941def1e5cadf686cd3ea0079cebcf23427 DIR parent 81d340b19c461fd82c729f80355f7d8afecaf178 HTML Author: ThomasV <thomasv@electrum.org> Date: Thu, 30 May 2019 16:49:25 +0200 lnsweep: minor fix Diffstat: M electrum/lnsweep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/electrum/lnsweep.py b/electrum/lnsweep.py t@@ -264,11 +264,11 @@ def create_sweeptxs_for_their_ctx(chan: 'Channel', ctx: Transaction, return {} their_pcp = ecc.ECPrivkey(per_commitment_secret).get_public_key_bytes(compressed=True) is_revocation = True + other_revocation_privkey = derive_blinded_privkey(other_conf.revocation_basepoint.privkey, per_commitment_secret) else: return {} # prep other_revocation_pubkey = derive_blinded_pubkey(other_conf.revocation_basepoint.pubkey, their_pcp) - other_revocation_privkey = derive_blinded_privkey(other_conf.revocation_basepoint.privkey, per_commitment_secret) other_htlc_privkey = derive_privkey(secret=int.from_bytes(other_conf.htlc_basepoint.privkey, 'big'), per_commitment_point=their_pcp) other_htlc_privkey = ecc.ECPrivkey.from_secret_scalar(other_htlc_privkey) this_htlc_pubkey = derive_pubkey(this_conf.htlc_basepoint.pubkey, their_pcp)