Skip to content

Commit

Permalink
More accurate notes
Browse files Browse the repository at this point in the history
  • Loading branch information
prasannavl authored Nov 11, 2024
1 parent 8dc246d commit 433ad3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dfi/rpc_accounts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3710,15 +3710,15 @@ UniValue logdbhashes(const JSONRPCRequest &request) {
result.pushKV("blockhash", blockHash);
// Note that this only guaranteed to be equal with other nodes
// if they didn't hit undo changes at different points.
// Other instances that can cause this to differ are:
// consolidaterewards at different points, etc
// Other known instance that can cause this to differ:
// - consolidaterewards at different points if pre-static addresses are involved.
result.pushKV("dvmhash", hashHex);
result.pushKV("dvmhash_no_undo", hashHexNoUndo);

auto res = XResultValueLogged(evm_try_get_latest_block_hash(result));
if (res) {
// Only available after EVM activation
// EVM block hash already is inclusive of it's all it's
// EVM block hash already is inclusive of all it's
// state, so we don't need to do the DVM shenangins.
auto evmBlockHash = uint256::FromByteArray(*res).GetHex();
result.pushKV("evmhash", evmBlockHash);
Expand Down

0 comments on commit 433ad3a

Please sign in to comment.