minor fix

This commit is contained in:
thomasv 2012-01-12 13:52:48 +01:00
parent fba352c8a2
commit d87756ebd1
1 changed files with 2 additions and 2 deletions

View File

@ -258,7 +258,7 @@ class Interface:
else: break
s.close()
self.rtime = time.time() - t1
if cmd == 'peers':
if cmd in[ 'peers','h']:
out = ast.literal_eval( out )
return out
@ -284,7 +284,7 @@ class Interface:
def retrieve_history(self, address):
out = self.handler('blockchain.address.get_history', address )
return ast.literal_eval( out )
return out
def poll(self):
out = self.handler('session.poll', self.session_id )