1
0

better encapsulation

This commit is contained in:
ThomasV
2012-03-17 12:36:27 +01:00
parent 2859251c02
commit 4b6e163a39
3 changed files with 41 additions and 36 deletions

View File

@@ -456,7 +456,7 @@ class Wallet:
def create_new_address(self, bool):
address = self.create_new_address_without_history(bool)
self.interface.subscribe(address, self.receive_status_callback)
self.interface.subscribe(address)
return address
@@ -702,7 +702,7 @@ class Wallet:
def receive_status_callback(self, addr, status):
if self.status.get(addr) != status:
self.status[addr] = status
self.interface.get_history(addr, self.receive_history_callback)
self.interface.get_history(addr)
def receive_history_callback(self, addr, data):
#print "updating history for", addr