mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Increase default emerge queue limits and limit enqueue requests for active blocks.
This commit is contained in:
parent
be3fe161fc
commit
be8d1d2d99
3 changed files with 10 additions and 6 deletions
|
@ -426,6 +426,10 @@ bool EmergeManager::pushBlockEmergeData(
|
|||
m_qlimit_generate : m_qlimit_diskonly;
|
||||
if (count_peer >= qlimit_peer)
|
||||
return false;
|
||||
} else {
|
||||
// limit block enqueue requests for active blocks to 1/2 of total
|
||||
if (count_peer * 2 >= m_qlimit_total)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue