_('You are using a non-deterministic wallet, which cannot create new addresses.'),
_('You are using a non-deterministic wallet, which cannot create new addresses.'),'',
_('If you want to create new addresses, use a deterministic wallet instead.')
_('If you want to create new addresses, use a deterministic wallet instead.'),'\n\n',
_('Creating a new payment request will reuse one of your addresses and overwrite an existing request. Continue anyway?'),
]
]
self.show_message(''.join(msg))
ifnotself.question(''.join(msg)):
return
return
ifnotself.question(_("Warning: The next address will not be recovered automatically if you restore your wallet from seed; you may need to add it manually.\n\nThis occurs because you have too many unused addresses in your wallet. To avoid this situation, use the existing addresses first.\n\nCreate anyway?")):
addr=self.wallet.get_receiving_address()
return
else:# deterministic wallet
addr=self.wallet.create_new_address(False)
ifnotself.question(_("Warning: The next address will not be recovered automatically if you restore your wallet from seed; you may need to add it manually.\n\nThis occurs because you have too many unused addresses in your wallet. To avoid this situation, use the existing addresses first.\n\nCreate anyway?")):