diff options
author | James O'Beirne <james.obeirne@pm.me> | 2022-04-29 09:06:32 -0400 |
---|---|---|
committer | James O'Beirne <james.obeirne@pm.me> | 2023-03-07 16:06:20 -0500 |
commit | 7300ced9de22e6d1bff816e6538d3370cebe7501 (patch) | |
tree | 3f000c30fda2f63ea4cb65247e77347a9432d5ea /src/validation.cpp | |
parent | d96c59cc5cd2f73f1f55c133c52208671fe75ef3 (diff) |
log: add LoadBlockIndex() message for assumedvalid blocks
I found this useful during unittest debugging.
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index e4bc6cb10e..d4bf263bf7 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4353,6 +4353,8 @@ bool ChainstateManager::LoadBlockIndex() assert(any_chain([](auto chainstate) { return !chainstate->reliesOnAssumedValid(); })); first_assumed_valid_height = block->nHeight; + LogPrintf("Saw first assumedvalid block at height %d (%s)\n", + first_assumed_valid_height, block->ToString()); break; } } |