[bitcoin/bitcoin] Dandelion transaction relay (BIP 156) (#13947)

MarcoFalke commented on this pull request.

> @@ -1027,6 +1031,12 @@ bool AppInitParameterInteraction()
LogPrintf(«Warning: nMinimumChainWork set below default value of %s\n», chainparams.GetConsensus().nMinimumChainWork.GetHex());
}

+ {
+ const int64_t pct = gArgs.GetArg(«-dandelion», DEFAULT_DANDELION_STEM_PERCENTAGE);
+ if (pct < 0 || 100 < pct) return InitError(_("-dandelion must be 0 or a percentage less than 100")); 100% is allowed to always extend the stem by one hop. So the interval is [0, 100].

Добавить комментарий