Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add block hash to logdbhashes #3117

Merged
merged 7 commits into from
Nov 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add block hash to logdbhashes
  • Loading branch information
Bushstar committed Nov 11, 2024
commit def24b5d8dbbbb8dd208b88a71b820e497dcc775
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
Loading