Skip to content

Commit

Permalink
fix: avoid crashes on "corrupted db" reindex attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Nov 19, 2023
1 parent 722d14c commit e830b5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1912,6 +1912,7 @@ bool AppInitMain(const CoreContext& context, NodeContext& node, interfaces::Bloc
LOCK(cs_main);
node.evodb.reset();
node.evodb = std::make_unique<CEvoDB>(nEvoDbCache, false, fReset || fReindexChainState);
node.mnhf_manager.reset();
node.mnhf_manager = std::make_unique<CMNHFManager>(*node.evodb);

chainman.Reset();
Expand Down

0 comments on commit e830b5c

Please sign in to comment.