show raw_output_script for unspent outputs.
[electrum-server.git] / stratum.py
index fab33f9..6643815 100644 (file)
@@ -32,6 +32,10 @@ class Processor(threading.Thread):
                     # to our internal register
                     self.add_session(session)
                     self.process(session)
+        self.stop()
+
+    def stop(self):
+        pass
 
     def process(self, session):
         request = session.pop_request()
@@ -174,7 +178,7 @@ class TcpServer(threading.Thread):
         print "TCP server started."
         sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
         sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
-        sock.bind(("localhost", 50001))
+        sock.bind(("176.31.24.241", 50001))
         sock.listen(1)
         while not self.shared.stopped():
             session = Session(*sock.accept())