electrum

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

commit a54631b8738e383f8b5649e8044da66e04afc82e
parent a04e37d05019ecf77fabcd31d344efad60ef64b5
Author: ThomasV <thomasv@electrum.org>
Date:   Tue, 25 Sep 2018 11:57:37 +0200

add pong handler to reduce verbosity

Diffstat:
Melectrum/lnbase.py | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/electrum/lnbase.py b/electrum/lnbase.py @@ -396,7 +396,6 @@ class Peer(PrintError): def process_message(self, message): message_type, payload = decode_msg(message) - #self.print_error("Received '%s'" % message_type.upper()) try: f = getattr(self, 'on_' + message_type) except AttributeError: @@ -414,6 +413,9 @@ class Peer(PrintError): l = int.from_bytes(payload['num_pong_bytes'], 'big') self.send_message(gen_msg('pong', byteslen=l)) + def on_pong(self, payload): + pass + def on_accept_channel(self, payload): temp_chan_id = payload["temporary_channel_id"] if temp_chan_id not in self.channel_accepted: raise Exception("Got unknown accept_channel")