|
@ -36,6 +36,7 @@ from .lntransport import LNTransport, LNResponderTransport |
|
|
from .lnpeer import Peer, LN_P2P_NETWORK_TIMEOUT |
|
|
from .lnpeer import Peer, LN_P2P_NETWORK_TIMEOUT |
|
|
from .lnaddr import lnencode, LnAddr, lndecode |
|
|
from .lnaddr import lnencode, LnAddr, lndecode |
|
|
from .ecc import der_sig_from_sig_string |
|
|
from .ecc import der_sig_from_sig_string |
|
|
|
|
|
from .ecc_fast import is_using_fast_ecc |
|
|
from .lnchannel import Channel, ChannelJsonEncoder |
|
|
from .lnchannel import Channel, ChannelJsonEncoder |
|
|
from . import lnutil |
|
|
from . import lnutil |
|
|
from .lnutil import (Outpoint, calc_short_channel_id, LNPeerAddr, |
|
|
from .lnutil import (Outpoint, calc_short_channel_id, LNPeerAddr, |
|
@ -251,6 +252,7 @@ class LNGossip(LNWorker): |
|
|
self.localfeatures |= LnLocalFeatures.GOSSIP_QUERIES_OPT |
|
|
self.localfeatures |= LnLocalFeatures.GOSSIP_QUERIES_OPT |
|
|
self.localfeatures |= LnLocalFeatures.GOSSIP_QUERIES_REQ |
|
|
self.localfeatures |= LnLocalFeatures.GOSSIP_QUERIES_REQ |
|
|
self.unknown_ids = set() |
|
|
self.unknown_ids = set() |
|
|
|
|
|
assert is_using_fast_ecc(), "verifying LN gossip msgs without libsecp256k1 is hopeless" |
|
|
|
|
|
|
|
|
def start_network(self, network: 'Network'): |
|
|
def start_network(self, network: 'Network'): |
|
|
super().start_network(network) |
|
|
super().start_network(network) |
|
|