Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 2,455 Lines • ▼ Show 20 Lines | if (args.GetBoolArg("-enableavalanche", AVALANCHE_DEFAULT_ENABLED)) { | ||||
case avalanche::ProofValidationResult::DUPLICATE_STAKE: | case avalanche::ProofValidationResult::DUPLICATE_STAKE: | ||||
InitError( | InitError( | ||||
_("the avalanche proof has duplicated stake")); | _("the avalanche proof has duplicated stake")); | ||||
return false; | return false; | ||||
case avalanche::ProofValidationResult::INVALID_SIGNATURE: | case avalanche::ProofValidationResult::INVALID_SIGNATURE: | ||||
InitError(_("the avalanche proof has invalid stake " | InitError(_("the avalanche proof has invalid stake " | ||||
"signatures")); | "signatures")); | ||||
return false; | return false; | ||||
case avalanche::ProofValidationResult::TOO_MANY_UTXOS: | |||||
InitError(strprintf(_("the avalanche proof has too " | |||||
"many utxos (max: %u)"), | |||||
AVALANCHE_MAX_PROOF_STAKES)); | |||||
return false; | |||||
default: | default: | ||||
InitError(_("the avalanche proof is invalid")); | InitError(_("the avalanche proof is invalid")); | ||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
} catch (const std::runtime_error &e) { | } catch (const std::runtime_error &e) { | ||||
LogPrintf("Avalanche is enabled but no proof supplied, the node " | LogPrintf("Avalanche is enabled but no proof supplied, the node " | ||||
"will not be able to vote\n"); | "will not be able to vote\n"); | ||||
▲ Show 20 Lines • Show All 529 Lines • Show Last 20 Lines |