X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=lib%2Fnetwork.py;h=ae9549da0a75719da7a046647f4b2626698ff919;hb=3941743c729b0416422f79b3feefe523a40ad1f0;hp=35b2db127a6a702aadd04ef0feda88539e52dc90;hpb=be506af2460e47527d03dc7d864ec72a04d8d7e7;p=electrum-nvc.git diff --git a/lib/network.py b/lib/network.py index 35b2db1..ae9549d 100644 --- a/lib/network.py +++ b/lib/network.py @@ -421,6 +421,16 @@ class Network(threading.Thread): +class NetworkProxy: + # interface to the network object. + # handle subscriptions and callbacks + # the network object can be jsonrpc server + def __init__(self, network): + self.network = network + + + + if __name__ == "__main__": import simple_config config = simple_config.SimpleConfig({'verbose':True, 'server':'ecdsa.org:50002:s'})