Skip to content

Commit

Permalink
Unconditionally add checkpointmaster in RPC Result
Browse files Browse the repository at this point in the history
  • Loading branch information
CerturiumDev committed Sep 22, 2022
1 parent 0b9d3b7 commit 5f59760
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rpc/blockchain.cpp
Expand Up @@ -1133,8 +1133,8 @@ static RPCHelpMan getcheckpoint()
result.pushKV("height", pindexCheckpoint->nHeight);
result.pushKV("timestamp", (boost::int64_t) pindexCheckpoint->GetBlockTime());
}
if (gArgs.IsArgSet("-checkpointkey"))
result.pushKV("checkpointmaster", true);

result.pushKV("checkpointmaster", gArgs.IsArgSet("-checkpointkey"));

return result;
},
Expand Down Expand Up @@ -1181,8 +1181,8 @@ static RPCHelpMan sendcheckpoint()
result.pushKV("height", pindexCheckpoint->nHeight);
result.pushKV("timestamp", (boost::int64_t) pindexCheckpoint->GetBlockTime());
}
if (gArgs.IsArgSet("-checkpointkey"))
result.pushKV("checkpointmaster", true);

result.pushKV("checkpointmaster", gArgs.IsArgSet("-checkpointkey"));

return result;
},
Expand Down

0 comments on commit 5f59760

Please sign in to comment.