mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 15:35:50 +00:00
adds config option for enhanced squelching
This commit is contained in:
@@ -253,6 +253,10 @@ public:
|
||||
// made the default routing algorithm //
|
||||
std::size_t VP_REDUCE_RELAY_SQUELCH_MAX_SELECTED_PEERS = 5;
|
||||
///////////////// END OF TEMPORARY CODE BLOCK /////////////////////
|
||||
// Reduce-relay - these parameters are experimental.
|
||||
|
||||
// Enable enhanced squelching of unique untrusted validator messages
|
||||
bool VP_REDUCE_RELAY_ENHANCED_SQUELCH_ENABLE = false;
|
||||
|
||||
// Transaction reduce-relay feature
|
||||
bool TX_REDUCE_RELAY_ENABLE = false;
|
||||
|
||||
@@ -775,6 +775,9 @@ Config::loadFromString(std::string const& fileContents)
|
||||
"greater than or equal to 3");
|
||||
///////////////// !!END OF TEMPORARY CODE BLOCK!! /////////////////////
|
||||
|
||||
VP_REDUCE_RELAY_ENHANCED_SQUELCH_ENABLE =
|
||||
sec.value_or("vp_enhanced_squelch_enable", false);
|
||||
|
||||
TX_REDUCE_RELAY_ENABLE = sec.value_or("tx_enable", false);
|
||||
TX_REDUCE_RELAY_METRICS = sec.value_or("tx_metrics", false);
|
||||
TX_REDUCE_RELAY_MIN_PEERS = sec.value_or("tx_min_peers", 20);
|
||||
|
||||
Reference in New Issue
Block a user