Raven Core
3.0.0
P2P Digital Currency
src
script
script_error.h
Go to the documentation of this file.
1
// Copyright (c) 2009-2010 Satoshi Nakamoto
2
// Copyright (c) 2009-2016 The Bitcoin Core developers
3
// Copyright (c) 2017-2019 The Raven Core developers
4
// Distributed under the MIT software license, see the accompanying
5
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
6
7
#ifndef RAVEN_SCRIPT_SCRIPT_ERROR_H
8
#define RAVEN_SCRIPT_SCRIPT_ERROR_H
9
10
typedef
enum
ScriptError_t
11
{
12
SCRIPT_ERR_OK
= 0,
13
SCRIPT_ERR_UNKNOWN_ERROR
,
14
SCRIPT_ERR_EVAL_FALSE
,
15
SCRIPT_ERR_OP_RETURN
,
16
17
/* Max sizes */
18
SCRIPT_ERR_SCRIPT_SIZE
,
19
SCRIPT_ERR_PUSH_SIZE
,
20
SCRIPT_ERR_OP_COUNT
,
21
SCRIPT_ERR_STACK_SIZE
,
22
SCRIPT_ERR_SIG_COUNT
,
23
SCRIPT_ERR_PUBKEY_COUNT
,
24
25
/* Failed verify operations */
26
SCRIPT_ERR_VERIFY
,
27
SCRIPT_ERR_EQUALVERIFY
,
28
SCRIPT_ERR_CHECKMULTISIGVERIFY
,
29
SCRIPT_ERR_CHECKSIGVERIFY
,
30
SCRIPT_ERR_NUMEQUALVERIFY
,
31
32
/* Logical/Format/Canonical errors */
33
SCRIPT_ERR_BAD_OPCODE
,
34
SCRIPT_ERR_DISABLED_OPCODE
,
35
SCRIPT_ERR_INVALID_STACK_OPERATION
,
36
SCRIPT_ERR_INVALID_ALTSTACK_OPERATION
,
37
SCRIPT_ERR_UNBALANCED_CONDITIONAL
,
38
39
/* CHECKLOCKTIMEVERIFY and CHECKSEQUENCEVERIFY */
40
SCRIPT_ERR_NEGATIVE_LOCKTIME
,
41
SCRIPT_ERR_UNSATISFIED_LOCKTIME
,
42
43
/* Malleability */
44
SCRIPT_ERR_SIG_HASHTYPE
,
45
SCRIPT_ERR_SIG_DER
,
46
SCRIPT_ERR_MINIMALDATA
,
47
SCRIPT_ERR_SIG_PUSHONLY
,
48
SCRIPT_ERR_SIG_HIGH_S
,
49
SCRIPT_ERR_SIG_NULLDUMMY
,
50
SCRIPT_ERR_PUBKEYTYPE
,
51
SCRIPT_ERR_CLEANSTACK
,
52
SCRIPT_ERR_MINIMALIF
,
53
SCRIPT_ERR_SIG_NULLFAIL
,
54
55
/* softfork safeness */
56
SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS
,
57
SCRIPT_ERR_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM
,
58
59
/* segregated witness */
60
SCRIPT_ERR_WITNESS_PROGRAM_WRONG_LENGTH
,
61
SCRIPT_ERR_WITNESS_PROGRAM_WITNESS_EMPTY
,
62
SCRIPT_ERR_WITNESS_PROGRAM_MISMATCH
,
63
SCRIPT_ERR_WITNESS_MALLEATED
,
64
SCRIPT_ERR_WITNESS_MALLEATED_P2SH
,
65
SCRIPT_ERR_WITNESS_UNEXPECTED
,
66
SCRIPT_ERR_WITNESS_PUBKEYTYPE
,
67
68
SCRIPT_ERR_ERROR_COUNT
69
}
ScriptError
;
70
71
#define SCRIPT_ERR_LAST SCRIPT_ERR_ERROR_COUNT
72
73
const
char
*
ScriptErrorString
(
const
ScriptError
error
);
74
75
#endif // RAVEN_SCRIPT_SCRIPT_ERROR_H
SCRIPT_ERR_STACK_SIZE
Definition:
script_error.h:21
SCRIPT_ERR_SIG_PUSHONLY
Definition:
script_error.h:47
SCRIPT_ERR_WITNESS_PROGRAM_WRONG_LENGTH
Definition:
script_error.h:60
SCRIPT_ERR_CLEANSTACK
Definition:
script_error.h:51
SCRIPT_ERR_VERIFY
Definition:
script_error.h:26
SCRIPT_ERR_INVALID_STACK_OPERATION
Definition:
script_error.h:35
ScriptError
enum ScriptError_t ScriptError
SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS
Definition:
script_error.h:56
SCRIPT_ERR_UNKNOWN_ERROR
Definition:
script_error.h:13
SCRIPT_ERR_SIG_NULLFAIL
Definition:
script_error.h:53
SCRIPT_ERR_SIG_COUNT
Definition:
script_error.h:22
ScriptErrorString
const char * ScriptErrorString(const ScriptError error)
Definition:
script_error.cpp:9
SCRIPT_ERR_SIG_HIGH_S
Definition:
script_error.h:48
SCRIPT_ERR_NUMEQUALVERIFY
Definition:
script_error.h:30
SCRIPT_ERR_UNSATISFIED_LOCKTIME
Definition:
script_error.h:41
SCRIPT_ERR_SCRIPT_SIZE
Definition:
script_error.h:18
SCRIPT_ERR_DISABLED_OPCODE
Definition:
script_error.h:34
SCRIPT_ERR_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM
Definition:
script_error.h:57
SCRIPT_ERR_ERROR_COUNT
Definition:
script_error.h:68
SCRIPT_ERR_WITNESS_MALLEATED
Definition:
script_error.h:63
SCRIPT_ERR_SIG_HASHTYPE
Definition:
script_error.h:44
SCRIPT_ERR_OP_COUNT
Definition:
script_error.h:20
SCRIPT_ERR_OK
Definition:
script_error.h:12
SCRIPT_ERR_WITNESS_PROGRAM_MISMATCH
Definition:
script_error.h:62
SCRIPT_ERR_CHECKSIGVERIFY
Definition:
script_error.h:29
SCRIPT_ERR_WITNESS_PUBKEYTYPE
Definition:
script_error.h:66
ScriptError_t
ScriptError_t
Definition:
script_error.h:10
SCRIPT_ERR_PUBKEY_COUNT
Definition:
script_error.h:23
SCRIPT_ERR_EVAL_FALSE
Definition:
script_error.h:14
SCRIPT_ERR_PUBKEYTYPE
Definition:
script_error.h:50
SCRIPT_ERR_BAD_OPCODE
Definition:
script_error.h:33
SCRIPT_ERR_MINIMALDATA
Definition:
script_error.h:46
SCRIPT_ERR_WITNESS_MALLEATED_P2SH
Definition:
script_error.h:64
SCRIPT_ERR_EQUALVERIFY
Definition:
script_error.h:27
SCRIPT_ERR_OP_RETURN
Definition:
script_error.h:15
SCRIPT_ERR_INVALID_ALTSTACK_OPERATION
Definition:
script_error.h:36
SCRIPT_ERR_NEGATIVE_LOCKTIME
Definition:
script_error.h:40
SCRIPT_ERR_CHECKMULTISIGVERIFY
Definition:
script_error.h:28
SCRIPT_ERR_SIG_DER
Definition:
script_error.h:45
SCRIPT_ERR_PUSH_SIZE
Definition:
script_error.h:19
SCRIPT_ERR_WITNESS_PROGRAM_WITNESS_EMPTY
Definition:
script_error.h:61
SCRIPT_ERR_WITNESS_UNEXPECTED
Definition:
script_error.h:65
error
bool error(const char *fmt, const Args &... args)
Definition:
util.h:168
SCRIPT_ERR_SIG_NULLDUMMY
Definition:
script_error.h:49
SCRIPT_ERR_MINIMALIF
Definition:
script_error.h:52
SCRIPT_ERR_UNBALANCED_CONDITIONAL
Definition:
script_error.h:37
Generated on Mon Jul 29 2019 02:32:20 for Raven Core by
1.8.13