1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-15 04:32:21 +00:00

Cleanup mempool on collators

This commit is contained in:
SpyCheese 2024-08-09 09:20:42 +03:00
parent 4a6479af57
commit dcb409462a

View file

@ -2841,7 +2841,7 @@ void ValidatorManagerImpl::alarm() {
}
alarm_timestamp().relax(log_ls_stats_at_);
if (cleanup_mempool_at_.is_in_past()) {
if (is_validator()) {
if (is_validator() || !collator_nodes_.empty()) {
get_external_messages(ShardIdFull{masterchainId, shardIdAll},
[](td::Result<std::vector<std::pair<td::Ref<ExtMessage>, int>>>) {});
get_external_messages(ShardIdFull{basechainId, shardIdAll},