Added getinfo() call
authorslush <info@bitcoin.cz>
Mon, 10 Sep 2012 07:22:27 +0000 (07:22 +0000)
committerslush <info@bitcoin.cz>
Mon, 10 Sep 2012 07:22:27 +0000 (07:22 +0000)
lib/bitcoin_rpc.py

index 3517b6d..731e13a 100644 (file)
@@ -45,6 +45,11 @@ class BitcoinRPC(object):
             defer.returnValue(False)
 
     @defer.inlineCallbacks
+    def getinfo(self):
+         resp = (yield self._call('getinfo', []))
+         defer.returnValue(json.loads(resp)['result'])
+    
+    @defer.inlineCallbacks
     def getblocktemplate(self):
         resp = (yield self._call('getblocktemplate', []))
         defer.returnValue(json.loads(resp)['result'])