Browse Source

require option static_remotekey in lnwallet

hard-fail-on-bad-server-string
ThomasV 5 years ago
parent
commit
fa62d03c2a
  1. 1
      electrum/lnworker.py

1
electrum/lnworker.py

@ -362,6 +362,7 @@ class LNWallet(LNWorker):
self.config = wallet.config
LNWorker.__init__(self, xprv)
self.localfeatures |= LnLocalFeatures.OPTION_DATA_LOSS_PROTECT_REQ
self.localfeatures |= LnLocalFeatures.OPTION_STATIC_REMOTEKEY_REQ
self.payments = self.db.get_dict('lightning_payments') # RHASH -> amount, direction, is_paid
self.preimages = self.db.get_dict('lightning_preimages') # RHASH -> preimage
self.sweep_address = wallet.get_receiving_address()

Loading…
Cancel
Save