Integrated xfh freehaven-protocol aka cn-heavy-superfast (#211)

This commit is contained in:
Ben Gräf 2018-11-18 14:46:45 +01:00 committed by GitHub
parent e874148820
commit 9987d6e2fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 2 deletions

View file

@ -291,7 +291,8 @@ constexpr static const char *pow_variant_names[] = {
"xtl",
"msr",
"xhv",
"rto"
"rto",
"xfh"
};
constexpr static const char *asm_optimization_names[] = {
@ -1070,6 +1071,11 @@ bool Options::parsePowVariant(const char *powVariant)
break;
}
if (i == ARRAY_SIZE(pow_variant_names) - 1 && (!strcmp(powVariant, "freehaven") || !strcmp(powVariant, "faven"))) {
m_powVariant = POW_XFH;
break;
}
if (i == ARRAY_SIZE(pow_variant_names) - 1) {
showUsage(1);
return false;