|
|
@ -35,9 +35,7 @@ class ElectrumGui: |
|
|
|
self.contacts = StoreDict(self.config, 'contacts') |
|
|
|
|
|
|
|
self.wallet.network.register_callback('updated', self.updated) |
|
|
|
self.wallet.network.register_callback('connected', self.connected) |
|
|
|
self.wallet.network.register_callback('disconnected', self.disconnected) |
|
|
|
self.wallet.network.register_callback('disconnecting', self.disconnecting) |
|
|
|
|
|
|
|
self.wallet.network.register_callback('peers', self.peers) |
|
|
|
self.wallet.network.register_callback('banner', self.print_banner) |
|
|
|
self.commands = [_("[h] - displays this help text"), \ |
|
|
@ -73,15 +71,6 @@ class ElectrumGui: |
|
|
|
for s in l: |
|
|
|
print (s) |
|
|
|
|
|
|
|
def connected(self): |
|
|
|
print ("connected") |
|
|
|
|
|
|
|
def disconnected(self): |
|
|
|
print ("disconnected") |
|
|
|
|
|
|
|
def disconnecting(self): |
|
|
|
print ("disconnecting") |
|
|
|
|
|
|
|
def updated(self): |
|
|
|
s = self.get_balance() |
|
|
|
if s != self.last_balance: |
|
|
|