protocolversion check
[p2pool.git] / p2pool / bitcoin / helper.py
index 16cb6d5..aa1de4e 100644 (file)
@@ -13,8 +13,8 @@ def check(bitcoind, net):
     if not (yield net.PARENT.RPC_CHECK(bitcoind)):
         print >>sys.stderr, "    Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!"
         raise deferral.RetrySilentlyException()
-    if not net.VERSION_CHECK((yield bitcoind.rpc_getinfo())['version']):
-        print >>sys.stderr, '    Bitcoin version too old! Upgrade to 0.6.4 or newer!'
+    if not net.VERSION_CHECK((yield bitcoind.rpc_getinfo())['protocolversion']):
+        print >>sys.stderr, '    Client version too old! Upgrade is required!'
         raise deferral.RetrySilentlyException()
 
 @deferral.retry('Error getting work from bitcoind:', 3)