Skip to content

Commit a505e32

Browse files
committed
Fix cleanup of old blocks in ValidatorSession
1 parent 8c15154 commit a505e32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validator-session/validator-session.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ void ValidatorSessionImpl::on_new_round(td::uint32 round) {
11831183
auto it2 = blocks_.begin();
11841184
while (it2 != blocks_.end()) {
11851185
if (it2->second->round_ < (td::int32)cur_round_ - MAX_PAST_ROUND_BLOCK &&
1186-
!accepted_block_candidates_.contains(it->first)) {
1186+
!accepted_block_candidates_.contains(it2->first)) {
11871187
it2 = blocks_.erase(it2);
11881188
} else {
11891189
++it2;

0 commit comments

Comments
 (0)