Skip to content

Commit 5c36bb2

Browse files
committed
docs: add TODO about bls global variable
1 parent 6fa033e commit 5c36bb2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/validation.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4042,6 +4042,9 @@ bool TestBlockValidity(BlockValidationState& state,
40424042
AssertLockHeld(cs_main);
40434043
assert(pindexPrev && pindexPrev == chainstate.m_chain.Tip());
40444044

4045+
// TODO: instead restoring bls_legacy_scheme better to keep it unchanged
4046+
// Moreover, current implementation is working incorrent if current function
4047+
// will return value too early due to error: old value won't be restored
40454048
auto bls_legacy_scheme = bls::bls_legacy_scheme.load();
40464049

40474050
uint256 hash = block.GetHash();

0 commit comments

Comments
 (0)