Use getblockheader instead of getblock when checking if block is in the main chain

This commit is contained in:
Jonas Nick 2017-09-11 17:13:12 +02:00
parent 1e1a2e580e
commit 42b6330e14

View file

@ -195,7 +195,7 @@ bool IsConfirmedBitcoinBlock(const uint256& genesishash, const uint256& hash, in
params = UniValue(UniValue::VARR);
params.push_back(hash.GetHex());
reply = CallRPC("getblock", params, true);
reply = CallRPC("getblockheader", params, true);
if (!find_value(reply, "error").isNull())
return false;
result = find_value(reply, "result");