Bitcoin Core  31.0.0
P2P Digital Currency
script_error.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-present 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 BITCOIN_SCRIPT_SCRIPT_ERROR_H
7 #define BITCOIN_SCRIPT_SCRIPT_ERROR_H
8 
9 #include <string>
10 
11 typedef enum ScriptError_t
12 {
18 
19  /* Max sizes */
26 
27  /* Failed verify operations */
33 
34  /* Logical/Format/Canonical errors */
40 
41  /* CHECKLOCKTIMEVERIFY and CHECKSEQUENCEVERIFY */
44 
45  /* Malleability */
56 
57  /* softfork safeness */
63 
64  /* segregated witness */
72 
73  /* Taproot */
82 
83  /* Constant scriptCode */
86 
88 } ScriptError;
89 
90 std::string ScriptErrorString(ScriptError error);
91 
92 #endif // BITCOIN_SCRIPT_SCRIPT_ERROR_H
std::string ScriptErrorString(ScriptError error)
enum ScriptError_t ScriptError
ScriptError_t
Definition: script_error.h:11