mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Fix IsConfirmedBitcoinBlock, clean up CallRPC
This commit is contained in:
parent
1150d0e9fc
commit
c868ef325e
5 changed files with 23 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue