1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Change format of specifying shards to monitor

This commit is contained in:
SpyCheese 2022-09-13 16:02:55 +03:00
parent c2e7d0b0de
commit 86250706b8
4 changed files with 7 additions and 4 deletions

View file

@ -1413,7 +1413,7 @@ void ValidatorEngine::set_shard_check_function() {
validator_options_.write().set_shard_check_function(
[shards = std::move(shards)](ton::ShardIdFull shard) -> bool {
for (auto s : shards) {
if (shard_is_ancestor(shard, s)) {
if (shard_intersects(shard, s)) {
return true;
}
}