Skip to content

Commit

Permalink
Add ocean_index_block logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouzo committed Sep 23, 2024
1 parent 3f9fd76 commit 5ec692f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dfi/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4600,8 +4600,10 @@ static CrossBoundaryResult OceanIndex(const UniValue b, const uint32_t height) {
CrossBoundaryResult result;
ocean_index_block(result, b.write());
if (!result.ok) {
LogPrintf("Error indexing block %d : %s\n", height, result.reason);
ocean_invalidate_block(result, b.write());
if (!result.ok) {
LogPrintf("Error invalidating block %d: %s\n", height, result.reason);
return result;
}
OceanIndex(b, height);
Expand Down

0 comments on commit 5ec692f

Please sign in to comment.