Fix IsConfirmedBitcoinBlock, clean up CallRPC

This commit is contained in:
Gregory Sanders 2016-12-07 09:54:00 -05:00
parent 1150d0e9fc
commit c868ef325e
5 changed files with 23 additions and 11 deletions

View file

@ -2654,7 +2654,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;