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 26, 2024
1 parent 8645134 commit 291aff7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 291aff7

Please sign in to comment.