electrum

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

commit 55a7e4cec153d6c2561b756bc6a2426d57e27bb7
parent ed62a2154771401f50066eb2152eff0d2d8740db
Author: Janus <ysangkok@gmail.com>
Date:   Mon,  9 Jul 2018 23:20:12 +0200

ln: use pending_local_commit while closing (won't be revoked)

Diffstat:
Mlib/lnworker.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/lnworker.py b/lib/lnworker.py @@ -183,7 +183,7 @@ class LNWorker(PrintError): # but in this case, we want the current one. So substract one ctn number old_local_state = chan.local_state chan.local_state=chan.local_state._replace(ctn=chan.local_state.ctn - 1) - tx = chan.local_commitment + tx = chan.pending_local_commitment chan.local_state = old_local_state tx.sign({bh2u(chan.local_config.multisig_key.pubkey): (chan.local_config.multisig_key.privkey, True)}) remote_sig = chan.local_state.current_commitment_signature