tgossip: start gossiping when channel is open - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit b543874670c557b1443330d02a6a90af3d81737f DIR parent 4efcb53d24d5f1040556d5fb4194eb8007943602 HTML Author: bitromortac <bitromortac@protonmail.com> Date: Tue, 13 Oct 2020 06:53:16 +0200 gossip: start gossiping when channel is open Diffstat: M electrum/lnworker.py | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) --- DIR diff --git a/electrum/lnworker.py b/electrum/lnworker.py t@@ -861,6 +861,12 @@ class LNWallet(LNWorker): chan, funding_tx = fut.result(timeout=timeout) except concurrent.futures.TimeoutError: raise Exception(_("open_channel timed out")) + + # at this point the channel opening was successful + # if this is the first channel that got opened, we start gossiping + if self.channels: + self.network.start_gossip() + return chan, funding_tx def pay(self, invoice: str, *, amount_msat: int = None, attempts: int = 1) -> Tuple[bool, List[PaymentAttemptLog]]: