log: add LoadBlockIndex() message for assumedvalid blocks

I found this useful during unittest debugging.
This commit is contained in:
James O'Beirne 2022-04-29 09:06:32 -04:00
parent d96c59cc5c
commit 7300ced9de

View file

@ -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;
}
}