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)