Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: deglobalization of bls_legacy_scheme 3/N #6508

Open
wants to merge 17 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: add TODO about bls global variable
  • Loading branch information
knst committed Dec 27, 2024
commit 5c36bb2423b04a2e6cc6554bd8aa92ffcd7f1f0b
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