master public key is not none; deprecation message
This commit is contained in:
parent
6f9d7fee94
commit
8df0f3fcc4
|
@ -328,9 +328,6 @@ class Wallet:
|
||||||
|
|
||||||
def create_new_address2(self, for_change):
|
def create_new_address2(self, for_change):
|
||||||
""" Publickey(type,n) = Master_public_key + H(n|S|type)*point """
|
""" Publickey(type,n) = Master_public_key + H(n|S|type)*point """
|
||||||
if self.master_public_key is None:
|
|
||||||
raise BaseException("Cannot create new addresses with this wallet.\nIf this is an old wallet, please move your complete balance to a new wallet.")
|
|
||||||
|
|
||||||
curve = SECP256k1
|
curve = SECP256k1
|
||||||
n = len(self.change_addresses) if for_change else len(self.addresses)
|
n = len(self.change_addresses) if for_change else len(self.addresses)
|
||||||
z = self.get_sequence(n,for_change)
|
z = self.get_sequence(n,for_change)
|
||||||
|
@ -352,8 +349,6 @@ class Wallet:
|
||||||
|
|
||||||
|
|
||||||
def synchronize(self):
|
def synchronize(self):
|
||||||
if self.master_public_key is None: return False # will be None if we read an older format
|
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
if self.change_addresses == []:
|
if self.change_addresses == []:
|
||||||
self.create_new_address2(True)
|
self.create_new_address2(True)
|
||||||
|
|
|
@ -68,7 +68,8 @@ if __name__ == "__main__":
|
||||||
if type(x) == tuple:
|
if type(x) == tuple:
|
||||||
seed_version, use_encryption, fee, host, port, blocks, seed, all_addresses, private_keys, change_indexes, status, history, labels, addressbook = x
|
seed_version, use_encryption, fee, host, port, blocks, seed, all_addresses, private_keys, change_indexes, status, history, labels, addressbook = x
|
||||||
print """This wallet is deprecated.
|
print """This wallet is deprecated.
|
||||||
Please create a new wallet, open the old wallet with Electrum 0.33, and send your coins to your new wallet"""
|
Please create a new wallet, open the old wallet with Electrum 0.33, and send your coins to your new wallet.
|
||||||
|
We apologize for the inconvenience. We try to keep this kind of upgrades as rare as possible."""
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
wallet = electrum.Wallet(path)
|
wallet = electrum.Wallet(path)
|
||||||
|
|
Loading…
Reference in New Issue