diff --git a/src/validation.cpp b/src/validation.cpp index 3cd5345de061f5..a5c4e7b79db08b 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4042,6 +4042,8 @@ bool TestBlockValidity(BlockValidationState& state, AssertLockHeld(cs_main); assert(pindexPrev && pindexPrev == chainstate.m_chain.Tip()); + // TODO: instead restoring bls_legacy_scheme better to keep it unchanged + // Moreover, current implementation won't restore if current function will finish earlier with error auto bls_legacy_scheme = bls::bls_legacy_scheme.load(); uint256 hash = block.GetHash();