tlnbase: typo in on_channel_reestablish - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 79989ad538b1113178755172d346338388a8bf95 DIR parent a91e244a052ae7d86e6a3c57916d52dc641ba6da HTML Author: SomberNight <somber.night@protonmail.com> Date: Mon, 15 Oct 2018 21:01:33 +0200 lnbase: typo in on_channel_reestablish Diffstat: M electrum/lnbase.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- DIR diff --git a/electrum/lnbase.py b/electrum/lnbase.py t@@ -10,7 +10,7 @@ import asyncio import os import time from functools import partial -from typing import List +from typing import List, Tuple import aiorpcx t@@ -139,7 +139,7 @@ for k in structured: assert message_types[b"\x00\x10"].__name__ == "init_handler" -def decode_msg(data): +def decode_msg(data: bytes) -> Tuple[str, dict]: """ Decode Lightning message by reading the first two bytes to determine message type. t@@ -150,7 +150,7 @@ def decode_msg(data): k, parsed = message_types[typ](data[2:]) return k, parsed -def gen_msg(msg_type, **kwargs): +def gen_msg(msg_type: str, **kwargs) -> bytes: """ Encode kwargs into a Lightning message (bytes) of the type given in the msg_type string t@@ -651,7 +651,7 @@ class Peer(PrintError): # the receiving node sent, AND the receiving node # hasn't already received a closing_signed: # MUST re-send the revoke_and_ack. - self.config[LOCAL]=self.config[LOCAL]._replace( + chan.config[LOCAL]=chan.config[LOCAL]._replace( ctn=remote_ctn, ) self.revoke(chan)