rename methods

This commit is contained in:
ThomasV 2012-03-16 22:24:28 +01:00
parent 642822187e
commit f33e347fad
2 changed files with 4 additions and 4 deletions

View File

@ -270,13 +270,13 @@ class TCPInterface(Interface):
status = c.get('status')
if addr in self.addresses_waiting_for_status:
self.addresses_waiting_for_status.remove(addr)
wallet.get_status_callback(addr, status)
wallet.receive_status_callback(addr, status)
elif cmd == 'address.get_history':
addr = c.get('address')
if addr in self.addresses_waiting_for_history:
self.addresses_waiting_for_history.remove(addr)
wallet.get_history_callback(addr, data)
wallet.receive_history_callback(addr, data)
self.was_updated = True
else:
print "received message:", c

View File

@ -703,12 +703,12 @@ class Wallet:
else:
return s
def get_status_callback(self, addr, status):
def receive_status_callback(self, addr, status):
if self.status.get(addr) != status:
self.status[addr] = status
self.interface.get_history(addr)
def get_history_callback(self, addr, data):
def receive_history_callback(self, addr, data):
self.history[addr] = data
self.synchronize()
self.update_tx_history()