adds config option for enhanced squelching

This commit is contained in:
Vito
2025-05-28 15:57:10 +02:00
parent d71ce51901
commit 34c3591554
2 changed files with 7 additions and 0 deletions

View File

@@ -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;

View File

@@ -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);