mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Add mempool messages cap
This commit is contained in:
parent
678a8a6a13
commit
69d0472510
7 changed files with 31 additions and 2 deletions
|
@ -191,6 +191,7 @@ class ValidatorEngine : public td::actor::Actor {
|
|||
std::map<CI_key, td::uint32> control_permissions_;
|
||||
|
||||
double state_ttl_ = 0;
|
||||
double max_mempool_num_ = 0;
|
||||
double block_ttl_ = 0;
|
||||
double sync_ttl_ = 0;
|
||||
double archive_ttl_ = 0;
|
||||
|
@ -223,6 +224,9 @@ class ValidatorEngine : public td::actor::Actor {
|
|||
void set_state_ttl(double t) {
|
||||
state_ttl_ = t;
|
||||
}
|
||||
void set_max_mempool_num(double t) {
|
||||
max_mempool_num_ = t;
|
||||
}
|
||||
void set_block_ttl(double t) {
|
||||
block_ttl_ = t;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue