Skip to content

Commit

Permalink
docs: add TODO about bls global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
knst committed Dec 27, 2024
1 parent 6fa033e commit 5c36bb2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4042,6 +4042,9 @@ 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 is working incorrent if current function
// will return value too early due to error: old value won't be restored
auto bls_legacy_scheme = bls::bls_legacy_scheme.load();

uint256 hash = block.GetHash();
Expand Down

0 comments on commit 5c36bb2

Please sign in to comment.