Skip to content

Commit

Permalink
Fix self_collate
Browse files Browse the repository at this point in the history
  • Loading branch information
SpyCheese committed Jan 7, 2025
1 parent e8e7883 commit 1ee3e5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion validator/collation-manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,10 @@ void CollationManager::update_collators_list(const CollatorsList& collators_list
auto old_collators = std::move(collators_);
collators_.clear();
for (const auto& shard : collators_list.shards) {
shards_.push_back({.shard_id = shard.shard_id, .select_mode = shard.select_mode, .collators = shard.collators});
shards_.push_back({.shard_id = shard.shard_id,
.select_mode = shard.select_mode,
.collators = shard.collators,
.self_collate = shard.self_collate});
for (auto id : shard.collators) {
auto it = old_collators.find(id);
if (it == old_collators.end()) {
Expand Down

0 comments on commit 1ee3e5d

Please sign in to comment.