commit 1dfae2618484750a2853ea62f0f5590c8f35c37d
parent 617f8a18ef5556ad425e5ff59a8c2ac4e5a73179
Author: ThomasV <thomasv@gitorious>
Date: Wed, 21 Mar 2012 11:36:07 +0300
Merge branch 'master' of gitorious.org:electrum/electrum
Diffstat:
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/client/electrum b/client/electrum
@@ -163,8 +163,7 @@ if __name__ == '__main__':
cmd = 'help'
# open session
- if cmd not in ['password', 'mktx', 'history', 'label', 'contacts', 'help', 'validateaddress', 'signmessage', 'verifymessage', 'eval', 'create', 'addresses', 'import']:
-
+ if cmd not in ['password', 'mktx', 'history', 'label', 'contacts', 'help', 'validateaddress', 'signmessage', 'verifymessage', 'eval', 'create', 'addresses', 'import', 'seed']:
addresses = wallet.all_addresses()
version = wallet.electrum_version
interface.start_session(addresses, version)
diff --git a/client/interface.py b/client/interface.py
@@ -236,6 +236,9 @@ class NativeInterface(PollingInterface):
if cmd == 'poll':
params = self.session_id
+ if cmd == 'address.subscribe':
+ params = [ self.session_id] + params
+
if cmd in ['h', 'tx']:
str_params = params[0]
elif type(params) != type(''):
@@ -369,7 +372,7 @@ class AsynchronousInterface(Interface):
self.is_connected = False
self.disconnected_event.set()
- def update_wallet(self,cb):
+ def update_wallet(self):
self.up_to_date_event.wait()
def send(self, messages):
diff --git a/client/wallet.py b/client/wallet.py
@@ -706,7 +706,7 @@ class Wallet:
self.interface.get_history(addr)
def receive_history_callback(self, addr, data):
- #print "updating history for", addr, repr(data)
+ #print "updating history for", addr
self.history[addr] = data
self.synchronize()
self.update_tx_history()