Fix IsConfirmedBitcoinBlock, clean up CallRPC

This commit is contained in:
Gregory Sanders 2016-12-07 09:54:00 -05:00
parent 248e696f37
commit 285b10ce10
5 changed files with 23 additions and 12 deletions

View file

@ -2085,7 +2085,7 @@ bool BitcoindRPCCheck(bool init)
try {
UniValue params(UniValue::VARR);
params.push_back(UniValue(0));
UniValue reply = CallRPC("getblockhash", params, GetArg("-mainchainrpcport", 18332), true);
UniValue reply = CallRPC("getblockhash", params, true);
if (!find_value(reply, "error").isNull()) {
LogPrintf("ERROR: Bitcoind RPC check returned 'error' response.\n");
return false;