rename interfaces
authorThomasV <thomasv@gitorious>
Sat, 31 Mar 2012 14:35:54 +0000 (16:35 +0200)
committerThomasV <thomasv@gitorious>
Sat, 31 Mar 2012 14:35:54 +0000 (16:35 +0200)
client/blocks
client/interface.py
client/peers
client/wallet.py

index d13e1ae..118e7cb 100755 (executable)
@@ -2,7 +2,7 @@
 
 import socket, time, interface
 
-i = interface.AsynchronousInterface('ecdsa.org', 50001)
+i = interface.TcpStratumInterface('ecdsa.org', 50001)
 i.start()
 i.send([('blockchain.numblocks.subscribe',[])])
 
index 915240b..fb7e033 100644 (file)
@@ -216,7 +216,7 @@ class NativeInterface(PollingInterface):
 
 
 
-class HttpInterface(PollingInterface):
+class HttpStratumInterface(PollingInterface):
 
     def poll(self):
         self.send([])
@@ -277,7 +277,7 @@ class HttpInterface(PollingInterface):
 
 
 
-class AsynchronousInterface(Interface):
+class TcpStratumInterface(Interface):
     """json-rpc over persistent TCP connection, asynchronous"""
 
     def __init__(self, host, port):
@@ -420,9 +420,9 @@ class WalletSynchronizer(threading.Thread):
         if protocol == 'n':
             InterfaceClass = NativeInterface
         elif protocol == 't':
-            InterfaceClass = AsynchronousInterface
+            InterfaceClass = TcpStratumInterface
         elif protocol == 'h':
-            InterfaceClass = HttpInterface
+            InterfaceClass = HttpStratumInterface
         else:
             print "unknown protocol"
             InterfaceClass = NativeInterface
index 3d6d8a9..f9d9038 100755 (executable)
@@ -2,7 +2,7 @@
 
 import socket, time, interface
 
-i = interface.AsynchronousInterface('ecdsa.org', 50001)
+i = interface.TcpStratumInterface('ecdsa.org', 50001)
 i.start()
 i.send([('server.peers.subscribe',[])])
 
index 87f6615..d2df364 100644 (file)
@@ -230,7 +230,7 @@ def format_satoshis(x, is_diff=False):
 
 
 from version import ELECTRUM_VERSION, SEED_VERSION
-from interface import NativeInterface, AsynchronousInterface, HttpInterface, DEFAULT_SERVERS
+from interface import DEFAULT_SERVERS