mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-23 04:25:51 +00:00
Add experimental validation & proposal relay reduction support:
- Add validation/proposal reduce-relay feature negotiation to the handshake - Make squelch duration proportional to a number of peers that can be squelched - Refactor makeRequest()/makeResponse() to facilitate handshake unit-testing - Fix compression enable flag for inbound peer - Fix compression algorithm parsing in the header parser - Fix squelch duration in onMessage(TMSquelch) This commit fixes 3624, fixes 3639 and fixes 3641
This commit is contained in:
committed by
Nik Bougalis
parent
44fe0e1fc4
commit
74d96ff4bd
@@ -523,8 +523,8 @@ Config::loadFromString(std::string const& fileContents)
|
||||
if (exists(SECTION_REDUCE_RELAY))
|
||||
{
|
||||
auto sec = section(SECTION_REDUCE_RELAY);
|
||||
REDUCE_RELAY_ENABLE = sec.value_or("enable", false);
|
||||
REDUCE_RELAY_SQUELCH = sec.value_or("squelch", false);
|
||||
VP_REDUCE_RELAY_ENABLE = sec.value_or("vp_enable", false);
|
||||
VP_REDUCE_RELAY_SQUELCH = sec.value_or("vp_squelch", false);
|
||||
}
|
||||
|
||||
if (getSingleSection(secConfig, SECTION_MAX_TRANSACTIONS, strTemp, j_))
|
||||
|
||||
Reference in New Issue
Block a user