1
0

Wizard: do not ask seed type, default to segwit

segwit addresses are widely supported today.
This commit is contained in:
ThomasV
2020-11-30 14:47:38 +01:00
parent 94708f63e4
commit 641968fcf8
3 changed files with 6 additions and 26 deletions

View File

@@ -685,24 +685,9 @@ class BaseWizard(Logger):
def show_xpub_and_add_cosigners(self, xpub):
self.show_xpub_dialog(xpub=xpub, run_next=lambda x: self.run('choose_keystore'))
def choose_seed_type(self, message=None, choices=None):
title = _('Choose Seed type')
if message is None:
message = ' '.join([
_("The type of addresses used by your wallet will depend on your seed."),
_("Segwit wallets use bech32 addresses, defined in BIP173."),
_("Please note that websites and other wallets may not support these addresses yet."),
_("Thus, you might want to keep using a non-segwit wallet in order to be able to receive bitcoins during the transition period.")
])
if choices is None:
choices = [
('create_segwit_seed', _('Segwit')),
('create_standard_seed', _('Legacy')),
]
self.choice_dialog(title=title, message=message, choices=choices, run_next=self.run)
def create_segwit_seed(self): self.create_seed('segwit')
def create_standard_seed(self): self.create_seed('standard')
def choose_seed_type(self):
seed_type = 'standard' if self.config.get('nosegwit') else 'segwit'
self.create_seed(seed_type)
def create_seed(self, seed_type):
from . import mnemonic