mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Use getblockheader instead of getblock when checking if block is in the main chain
This commit is contained in:
parent
1e1a2e580e
commit
42b6330e14
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue