Bitcoin ABC  0.24.10
P2P Digital Currency
validation.h
Go to the documentation of this file.
1 // Copyright (c) 2020 The Bitcoin developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_AVALANCHE_VALIDATION_H
6 #define BITCOIN_AVALANCHE_VALIDATION_H
7 
8 #include <consensus/validation.h>
9 
10 namespace avalanche {
11 
13  NONE = 0,
14  NO_STAKE,
22 
23  // UTXO based errors.
31 };
32 
33 class ProofValidationState : public ValidationState<ProofValidationResult> {};
34 
35 enum class DelegationResult {
36  NONE = 0,
38 };
39 
40 class DelegationState : public ValidationState<DelegationResult> {};
41 
42 } // namespace avalanche
43 
44 #endif // BITCOIN_AVALANCHE_VALIDATION_H
avalanche::ProofValidationResult::DESTINATION_MISMATCH
@ DESTINATION_MISMATCH
avalanche::ProofValidationResult::DESTINATION_NOT_SUPPORTED
@ DESTINATION_NOT_SUPPORTED
avalanche::ProofValidationResult::NO_STAKE
@ NO_STAKE
avalanche
Definition: avalanche.h:11
avalanche::ProofValidationResult::HEIGHT_MISMATCH
@ HEIGHT_MISMATCH
validation.h
avalanche::ProofValidationResult::NON_STANDARD_DESTINATION
@ NON_STANDARD_DESTINATION
avalanche::DelegationResult::INVALID_SIGNATURE
@ INVALID_SIGNATURE
avalanche::ProofValidationResult::INVALID_STAKE_SIGNATURE
@ INVALID_STAKE_SIGNATURE
avalanche::ProofValidationResult::DUST_THRESOLD
@ DUST_THRESOLD
avalanche::ProofValidationResult::AMOUNT_MISMATCH
@ AMOUNT_MISMATCH
avalanche::DelegationState
Definition: validation.h:40
avalanche::ProofValidationState
Definition: validation.h:33
avalanche::ProofValidationResult::DUPLICATE_STAKE
@ DUPLICATE_STAKE
avalanche::ProofValidationResult::INVALID_PAYOUT_SCRIPT
@ INVALID_PAYOUT_SCRIPT
avalanche::ProofValidationResult::MISSING_UTXO
@ MISSING_UTXO
avalanche::ProofValidationResult
ProofValidationResult
Definition: validation.h:12
avalanche::ProofValidationResult::WRONG_STAKE_ORDERING
@ WRONG_STAKE_ORDERING
avalanche::ProofValidationResult::TOO_MANY_UTXOS
@ TOO_MANY_UTXOS
avalanche::ProofValidationResult::COINBASE_MISMATCH
@ COINBASE_MISMATCH
avalanche::ProofValidationResult::INVALID_PROOF_SIGNATURE
@ INVALID_PROOF_SIGNATURE
avalanche::ProofValidationResult::NONE
@ NONE
avalanche::DelegationResult::NONE
@ NONE
avalanche::DelegationResult
DelegationResult
Definition: validation.h:35
ValidationState
Template for capturing information about block/transaction validation.
Definition: validation.h:88