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