Skip to content

Commit

Permalink
Fix asan issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg7mdp committed Apr 17, 2024
1 parent 8cc3518 commit 25f93f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/chain/block_header_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void finish_next(const block_header_state& prev,
if (it->first > lib) {
next_header_state.finalizer_policies = prev.finalizer_policies;
} else {
while (it->first <= lib && it != prev.finalizer_policies.end()) {
while (it != prev.finalizer_policies.end() && it->first <= lib) {
const finalizer_policy_tracker& tracker = it->second;
if (tracker.state == finalizer_policy_tracker::state_t::pending) {
// new finalizer_policy becones active
Expand Down

0 comments on commit 25f93f8

Please sign in to comment.