Skip to content

Commit 7300ced

Browse files
committed
log: add LoadBlockIndex() message for assumedvalid blocks
I found this useful during unittest debugging.
1 parent d96c59c commit 7300ced

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/validation.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4353,6 +4353,8 @@ bool ChainstateManager::LoadBlockIndex()
43534353
assert(any_chain([](auto chainstate) { return !chainstate->reliesOnAssumedValid(); }));
43544354

43554355
first_assumed_valid_height = block->nHeight;
4356+
LogPrintf("Saw first assumedvalid block at height %d (%s)\n",
4357+
first_assumed_valid_height, block->ToString());
43564358
break;
43574359
}
43584360
}

0 commit comments

Comments
 (0)