Skip to content

Commit

Permalink
Add block hash to logdbhashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar committed Nov 11, 2024
1 parent 8abe263 commit def24b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dfi/rpc_accounts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3701,10 +3701,12 @@ UniValue logdbhashes(const JSONRPCRequest &request) {

// Get the current block height
const auto height = ::ChainActive().Height();
const auto blockHash = ::ChainActive().Tip()->GetBlockHash().ToString();

// Prepare result
UniValue result(UniValue::VOBJ);
result.pushKV("height", height);
result.pushKV("blockhash", blockHash);
result.pushKV("dvmhash", hashHex);
result.pushKV("dvmhash_no_undo", hashHexNoUndo);

Expand Down

0 comments on commit def24b5

Please sign in to comment.