1
0

keystore: encapsulate "can_have_deterministic_lightning_xprv" logic

This commit is contained in:
SomberNight
2021-03-30 21:27:43 +02:00
parent 7b7bba2299
commit 35bc461fe1
3 changed files with 14 additions and 4 deletions

View File

@@ -545,7 +545,7 @@ class BaseWizard(Logger):
def create_keystore(self, seed, passphrase):
k = keystore.from_seed(seed, passphrase, self.wallet_type == 'multisig')
if self.wallet_type == 'standard' and self.seed_type == 'segwit':
if k.can_have_deterministic_lightning_xprv():
self.data['lightning_xprv'] = k.get_lightning_xprv(None)
self.on_keystore(k)