btcd-cli4j icon indicating copy to clipboard operation
btcd-cli4j copied to clipboard

Bitcoin v 0.14.0 has Deprecated getinfo

Open zuoliang0 opened this issue 6 years ago • 0 comments

when use bitcoin 0.14.0 the

public BtcdClientImpl(CloseableHttpClient httpProvider, Properties nodeConfig) 
			throws BitcoindException, CommunicationException {
		initialize();
		rpcClient = new JsonRpcClientImpl(configurator.checkHttpProvider(httpProvider), 
				configurator.checkNodeConfig(nodeConfig));
		configurator.checkNodeVersion(getInfo().getVersion());
		configurator.checkNodeHealth((Block)getBlock(getBestBlockHash(), true));
	}

the `getInfo().getVersion()`` will be throw 404

Error #1003001: The server responded with a non-OK (4xx) HTTP status code. Status line: HTTP/1.1 404 Not Found, code=1003001))

please fix them

zuoliang0 avatar Apr 24 '18 03:04 zuoliang0