fix: synchronize generated duplicated addresses
This commit is contained in:
@@ -179,14 +179,13 @@ class InstallWizard(QDialog):
|
|||||||
|
|
||||||
#self.interface.start(wait = False)
|
#self.interface.start(wait = False)
|
||||||
|
|
||||||
# start wallet threads
|
|
||||||
wallet.start_threads(self.interface, self.blockchain)
|
|
||||||
|
|
||||||
|
|
||||||
# generate the first addresses, in case we are offline
|
# generate the first addresses, in case we are offline
|
||||||
if s is None or a == 'create':
|
if s is None or a == 'create':
|
||||||
wallet.synchronize()
|
wallet.synchronize()
|
||||||
|
|
||||||
|
# start wallet threads
|
||||||
|
wallet.start_threads(self.interface, self.blockchain)
|
||||||
|
|
||||||
|
|
||||||
if a == 'restore' and s is not None:
|
if a == 'restore' and s is not None:
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -665,7 +665,7 @@ class Wallet:
|
|||||||
if tx_height == 0:
|
if tx_height == 0:
|
||||||
tx_age = 0
|
tx_age = 0
|
||||||
else:
|
else:
|
||||||
tx_age = self.verifier.height - tx_height + 1
|
tx_age = self.verifier.blockchain.height - tx_height + 1
|
||||||
if tx_age > age:
|
if tx_age > age:
|
||||||
age = tx_age
|
age = tx_age
|
||||||
return age > 2
|
return age > 2
|
||||||
|
|||||||
Reference in New Issue
Block a user