Bitcoin ABC
0.30.5
P2P Digital Currency
src
avalanche
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
12
enum class
ProofValidationResult
{
13
NONE = 0,
14
NO_STAKE
,
15
DUST_THRESHOLD
,
16
DUPLICATE_STAKE
,
17
WRONG_STAKE_ORDERING
,
18
INVALID_STAKE_SIGNATURE
,
19
TOO_MANY_UTXOS
,
20
INVALID_PAYOUT_SCRIPT
,
21
INVALID_PROOF_SIGNATURE
,
22
EXPIRED
,
23
24
// UTXO based errors.
25
MISSING_UTXO
,
26
COINBASE_MISMATCH
,
27
HEIGHT_MISMATCH
,
28
AMOUNT_MISMATCH
,
29
NON_STANDARD_DESTINATION
,
30
DESTINATION_NOT_SUPPORTED
,
31
DESTINATION_MISMATCH
,
32
IMMATURE_UTXO
,
33
};
34
35
class
ProofValidationState
:
public
ValidationState
<ProofValidationResult> {};
36
37
enum class
DelegationResult
{
38
NONE = 0,
39
INVALID_SIGNATURE
,
40
TOO_MANY_LEVELS
,
41
};
42
43
class
DelegationState
:
public
ValidationState
<DelegationResult> {};
44
45
}
// namespace avalanche
46
47
#endif
// BITCOIN_AVALANCHE_VALIDATION_H
ValidationState
Template for capturing information about block/transaction validation.
Definition:
validation.h:89
avalanche::DelegationState
Definition:
validation.h:43
avalanche::ProofValidationState
Definition:
validation.h:35
validation.h
avalanche
Definition:
avalanche.h:13
avalanche::ProofRegistrationResult::MISSING_UTXO
@ MISSING_UTXO
avalanche::ProofValidationResult
ProofValidationResult
Definition:
validation.h:12
avalanche::ProofValidationResult::HEIGHT_MISMATCH
@ HEIGHT_MISMATCH
avalanche::ProofValidationResult::DUST_THRESHOLD
@ DUST_THRESHOLD
avalanche::ProofValidationResult::EXPIRED
@ EXPIRED
avalanche::ProofValidationResult::COINBASE_MISMATCH
@ COINBASE_MISMATCH
avalanche::ProofValidationResult::WRONG_STAKE_ORDERING
@ WRONG_STAKE_ORDERING
avalanche::ProofValidationResult::DESTINATION_NOT_SUPPORTED
@ DESTINATION_NOT_SUPPORTED
avalanche::ProofValidationResult::DUPLICATE_STAKE
@ DUPLICATE_STAKE
avalanche::ProofValidationResult::IMMATURE_UTXO
@ IMMATURE_UTXO
avalanche::ProofValidationResult::AMOUNT_MISMATCH
@ AMOUNT_MISMATCH
avalanche::ProofValidationResult::NO_STAKE
@ NO_STAKE
avalanche::ProofValidationResult::NON_STANDARD_DESTINATION
@ NON_STANDARD_DESTINATION
avalanche::ProofValidationResult::INVALID_PROOF_SIGNATURE
@ INVALID_PROOF_SIGNATURE
avalanche::ProofValidationResult::INVALID_STAKE_SIGNATURE
@ INVALID_STAKE_SIGNATURE
avalanche::ProofValidationResult::TOO_MANY_UTXOS
@ TOO_MANY_UTXOS
avalanche::ProofValidationResult::INVALID_PAYOUT_SCRIPT
@ INVALID_PAYOUT_SCRIPT
avalanche::ProofValidationResult::DESTINATION_MISMATCH
@ DESTINATION_MISMATCH
avalanche::DelegationResult
DelegationResult
Definition:
validation.h:37
avalanche::DelegationResult::TOO_MANY_LEVELS
@ TOO_MANY_LEVELS
avalanche::DelegationResult::INVALID_SIGNATURE
@ INVALID_SIGNATURE
Generated on Wed Nov 20 2024 17:55:57 for Bitcoin ABC by
1.9.4