Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.cpp
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | if (!proof.verify(proof_state)) { | ||||
error = _("The avalanche proof has no stake."); | error = _("The avalanche proof has no stake."); | ||||
return false; | return false; | ||||
case ProofValidationResult::DUST_THRESOLD: | case ProofValidationResult::DUST_THRESOLD: | ||||
error = _("The avalanche proof stake is too low."); | error = _("The avalanche proof stake is too low."); | ||||
return false; | return false; | ||||
case ProofValidationResult::DUPLICATE_STAKE: | case ProofValidationResult::DUPLICATE_STAKE: | ||||
error = _("The avalanche proof has duplicated stake."); | error = _("The avalanche proof has duplicated stake."); | ||||
return false; | return false; | ||||
case ProofValidationResult::INVALID_SIGNATURE: | case ProofValidationResult::INVALID_STAKE_SIGNATURE: | ||||
error = _("The avalanche proof has invalid stake signatures."); | error = _("The avalanche proof has invalid stake signatures."); | ||||
return false; | return false; | ||||
case ProofValidationResult::TOO_MANY_UTXOS: | case ProofValidationResult::TOO_MANY_UTXOS: | ||||
error = strprintf( | error = strprintf( | ||||
_("The avalanche proof has too many utxos (max: %u)."), | _("The avalanche proof has too many utxos (max: %u)."), | ||||
AVALANCHE_MAX_PROOF_STAKES); | AVALANCHE_MAX_PROOF_STAKES); | ||||
return false; | return false; | ||||
default: | default: | ||||
▲ Show 20 Lines • Show All 566 Lines • Show Last 20 Lines |