big refactoring: command line options and electrum.conf options override settings...
[electrum-nvc.git] / scripts / blocks
index 01fbc70..dfa8919 100755 (executable)
@@ -1,8 +1,8 @@
 #!/usr/bin/env python
 
-from electrum import TcpStratumInterface
+from electrum import Interface
 
-i = TcpStratumInterface('electrum.novit.ro', 50001)
+i = Interface({'server':'electrum.novit.ro:50001:t'})
 i.init_socket()
 i.start()
 i.send([('blockchain.numblocks.subscribe',[])])