Skip to content

Commit

Permalink
logevmaccountstates: return empty string before DF22MetachainHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Jul 5, 2024
1 parent ba75498 commit 3ff6563
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/dfi/rpc_evm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,12 @@ UniValue logevmaccountstates(const JSONRPCRequest &request) {
}
.Check(request);

auto &consensus = Params().GetConsensus();
const CBlockIndex *tip = ::ChainActive().Tip();
if (tip->nHeight < consensus.DF22MetachainHeight) {
return "";
}

CrossBoundaryResult result;
const auto dumpResults = debug_log_account_states(result);
if (!result.ok) {
Expand Down

0 comments on commit 3ff6563

Please sign in to comment.