rename methods
This commit is contained in:
@@ -270,13 +270,13 @@ class TCPInterface(Interface):
|
|||||||
status = c.get('status')
|
status = c.get('status')
|
||||||
if addr in self.addresses_waiting_for_status:
|
if addr in self.addresses_waiting_for_status:
|
||||||
self.addresses_waiting_for_status.remove(addr)
|
self.addresses_waiting_for_status.remove(addr)
|
||||||
wallet.get_status_callback(addr, status)
|
wallet.receive_status_callback(addr, status)
|
||||||
|
|
||||||
elif cmd == 'address.get_history':
|
elif cmd == 'address.get_history':
|
||||||
addr = c.get('address')
|
addr = c.get('address')
|
||||||
if addr in self.addresses_waiting_for_history:
|
if addr in self.addresses_waiting_for_history:
|
||||||
self.addresses_waiting_for_history.remove(addr)
|
self.addresses_waiting_for_history.remove(addr)
|
||||||
wallet.get_history_callback(addr, data)
|
wallet.receive_history_callback(addr, data)
|
||||||
self.was_updated = True
|
self.was_updated = True
|
||||||
else:
|
else:
|
||||||
print "received message:", c
|
print "received message:", c
|
||||||
|
|||||||
@@ -703,12 +703,12 @@ class Wallet:
|
|||||||
else:
|
else:
|
||||||
return s
|
return s
|
||||||
|
|
||||||
def get_status_callback(self, addr, status):
|
def receive_status_callback(self, addr, status):
|
||||||
if self.status.get(addr) != status:
|
if self.status.get(addr) != status:
|
||||||
self.status[addr] = status
|
self.status[addr] = status
|
||||||
self.interface.get_history(addr)
|
self.interface.get_history(addr)
|
||||||
|
|
||||||
def get_history_callback(self, addr, data):
|
def receive_history_callback(self, addr, data):
|
||||||
self.history[addr] = data
|
self.history[addr] = data
|
||||||
self.synchronize()
|
self.synchronize()
|
||||||
self.update_tx_history()
|
self.update_tx_history()
|
||||||
|
|||||||
Reference in New Issue
Block a user