mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
remove debug checks to improve performance under load on weak validators
This commit is contained in:
parent
b73b057e08
commit
7efb345e3d
5 changed files with 138 additions and 4 deletions
|
@ -143,7 +143,7 @@ class ValidatorSessionDescriptionImpl : public ValidatorSessionDescription {
|
|||
td::uint32 src_idx, td::Slice signature) const override;
|
||||
double get_delay(td::uint32 priority) const override;
|
||||
double get_empty_block_delay() const override {
|
||||
return get_delay(get_max_priority() + 1);
|
||||
return std::max(get_delay(get_max_priority() + 1), 1.0);
|
||||
}
|
||||
td::uint32 get_vote_for_author(td::uint32 attempt_seqno) const override;
|
||||
std::vector<PublicKeyHash> export_nodes() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue