return is_new
This commit is contained in:
parent
c22f839c9e
commit
14691ad9a8
|
@ -151,10 +151,10 @@ class Interface:
|
||||||
is_new = True
|
is_new = True
|
||||||
|
|
||||||
if is_new or wallet.remote_url:
|
if is_new or wallet.remote_url:
|
||||||
wallet.synchronize()
|
is_new = wallet.synchronize()
|
||||||
wallet.update_tx_history()
|
wallet.update_tx_history()
|
||||||
wallet.save()
|
wallet.save()
|
||||||
return True
|
return is_new
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
|
@ -484,9 +484,11 @@ class Wallet:
|
||||||
|
|
||||||
if self.remote_url:
|
if self.remote_url:
|
||||||
num = self.get_remote_number()
|
num = self.get_remote_number()
|
||||||
print num
|
|
||||||
while len(self.addresses)<num:
|
while len(self.addresses)<num:
|
||||||
self.create_new_address(False)
|
self.create_new_address(False)
|
||||||
|
is_new = True
|
||||||
|
|
||||||
|
return is_new
|
||||||
|
|
||||||
def get_remote_number(self):
|
def get_remote_number(self):
|
||||||
import jsonrpclib
|
import jsonrpclib
|
||||||
|
|
Loading…
Reference in New Issue