fix
This commit is contained in:
@@ -80,9 +80,10 @@ class PollingInterface(Interface):
|
|||||||
apply(self.history_callback, (addr, data) )
|
apply(self.history_callback, (addr, data) )
|
||||||
self.was_updated = True
|
self.was_updated = True
|
||||||
|
|
||||||
def subscribe(self, addr):
|
def subscribe(self, addresses):
|
||||||
status = self.handler('address.subscribe', [ self.session_id, addr ] )
|
for addr in addresses:
|
||||||
apply(self.address_callback, (addr, status) )
|
status = self.handler('address.subscribe', [ self.session_id, addr ] )
|
||||||
|
apply(self.address_callback, (addr, status) )
|
||||||
|
|
||||||
def update_wallet(self):
|
def update_wallet(self):
|
||||||
while True:
|
while True:
|
||||||
|
|||||||
@@ -456,7 +456,7 @@ class Wallet:
|
|||||||
|
|
||||||
def create_new_address(self, bool):
|
def create_new_address(self, bool):
|
||||||
address = self.create_new_address_without_history(bool)
|
address = self.create_new_address_without_history(bool)
|
||||||
self.interface.subscribe(address)
|
self.interface.subscribe([address])
|
||||||
return address
|
return address
|
||||||
|
|
||||||
|
|
||||||
@@ -701,6 +701,7 @@ class Wallet:
|
|||||||
|
|
||||||
def receive_status_callback(self, addr, status):
|
def receive_status_callback(self, addr, status):
|
||||||
if self.status.get(addr) != status:
|
if self.status.get(addr) != status:
|
||||||
|
#print "updating status for", addr
|
||||||
self.status[addr] = status
|
self.status[addr] = status
|
||||||
self.interface.get_history(addr)
|
self.interface.get_history(addr)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user