From 6add8473f946983785c4e85d476e97abf6a3d503 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Tue, 24 Dec 2024 19:48:37 +0700 Subject: [PATCH] docs: add TODO about bls global variable --- src/validation.cpp | 2 ++ 1 file changed, 2 insertions(+) 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();