1
0

Require gossip_queries in LNWallet (follow-up f83d2d9fee)

- workaround lnd bug https://github.com/lightningnetwork/lnd/issues/3651
 - also reduces bandwidth usage
This commit is contained in:
ThomasV
2020-12-22 12:28:40 +01:00
parent c478f3bb91
commit b29cdc02da
2 changed files with 12 additions and 0 deletions

View File

@@ -554,6 +554,9 @@ class LNWallet(LNWorker):
self.lnrater: LNRater = None
self.features |= LnFeatures.OPTION_DATA_LOSS_PROTECT_REQ
self.features |= LnFeatures.OPTION_STATIC_REMOTEKEY_REQ
# we do not want to receive unrequested gossip (see lnpeer.maybe_save_remote_update)
self.features |= LnFeatures.GOSSIP_QUERIES_REQ
self.payments = self.db.get_dict('lightning_payments') # RHASH -> amount, direction, is_paid # FIXME amt should be msat
self.preimages = self.db.get_dict('lightning_preimages') # RHASH -> preimage
# note: this sweep_address is only used as fallback; as it might result in address-reuse