electrum

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

commit 9a0ba7fa7907a35e006207a13ac10bf35fbbb7f2
parent c38afe8b07bb49e128b46a1b090d1b30ee028da6
Author: SomberNight <somber.night@protonmail.com>
Date:   Tue, 28 May 2019 20:45:43 +0200

ChannelDB: trivial bugfix for get_channels_for_node

Diffstat:
Melectrum/lnrouter.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/electrum/lnrouter.py b/electrum/lnrouter.py @@ -593,9 +593,9 @@ class ChannelDB(SqlDB): def get_channel_info(self, channel_id: bytes): return self._channels.get(channel_id) - def get_channels_for_node(self, node_id): + def get_channels_for_node(self, node_id) -> Set[bytes]: """Returns the set of channels that have node_id as one of the endpoints.""" - return self._channels_for_node.get(node_id) + return self._channels_for_node.get(node_id) or set()