Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14362742
D14584.id42507.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
801 B
Subscribers
None
D14584.id42507.diff
View Options
diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp
--- a/src/test/util/setup_common.cpp
+++ b/src/test/util/setup_common.cpp
@@ -239,6 +239,14 @@
m_cache_sizes.coins, true, true);
assert(!rv.has_value());
+ auto maybe_verify_failure = VerifyLoadedChainstate(
+ *Assert(m_node.chainman), fReindex.load(),
+ m_args.GetBoolArg("-reindex-chainstate", false), GetConfig(),
+ m_args.GetIntArg("-checkblocks", DEFAULT_CHECKBLOCKS),
+ m_args.GetIntArg("-checklevel", DEFAULT_CHECKLEVEL),
+ static_cast<int64_t (*)()>(GetTime));
+ assert(!maybe_verify_failure.has_value());
+
BlockValidationState state;
if (!m_node.chainman->ActiveChainstate().ActivateBestChain(config, state)) {
throw std::runtime_error(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 12, 01:44 (20 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5775118
Default Alt Text
D14584.id42507.diff (801 B)
Attached To
D14584: test: call VerifyLoadedChainstate during ChainTestingSetup
Event Timeline
Log In to Comment