mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Experimental flags for speeding up broadcasts
This commit is contained in:
parent
04f2bc1360
commit
8a08bf67a2
19 changed files with 131 additions and 46 deletions
|
@ -229,6 +229,9 @@ class ValidatorEngine : public td::actor::Actor {
|
|||
bool not_all_shards_ = false;
|
||||
std::vector<ton::ShardIdFull> add_shard_cmds_;
|
||||
bool state_serializer_disabled_flag_ = false;
|
||||
double broadcast_speed_multiplier_catchain_ = 1.0;
|
||||
double broadcast_speed_multiplier_public_ = 1.0;
|
||||
double broadcast_speed_multiplier_private_ = 1.0;
|
||||
|
||||
std::set<ton::CatchainSeqno> unsafe_catchains_;
|
||||
std::map<ton::BlockSeqno, std::pair<ton::CatchainSeqno, td::uint32>> unsafe_catchain_rotations_;
|
||||
|
@ -329,6 +332,15 @@ class ValidatorEngine : public td::actor::Actor {
|
|||
void set_state_serializer_disabled_flag() {
|
||||
state_serializer_disabled_flag_ = true;
|
||||
}
|
||||
void set_broadcast_speed_multiplier_catchain(double value) {
|
||||
broadcast_speed_multiplier_catchain_ = value;
|
||||
}
|
||||
void set_broadcast_speed_multiplier_public(double value) {
|
||||
broadcast_speed_multiplier_public_ = value;
|
||||
}
|
||||
void set_broadcast_speed_multiplier_private(double value) {
|
||||
broadcast_speed_multiplier_private_ = value;
|
||||
}
|
||||
|
||||
void start_up() override;
|
||||
ValidatorEngine() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue