Bitcoin Core  0.20.99
P2P Digital Currency
script_error.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2018 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 {
17 
18  /* Max sizes */
25 
26  /* Failed verify operations */
32 
33  /* Logical/Format/Canonical errors */
39 
40  /* CHECKLOCKTIMEVERIFY and CHECKSEQUENCEVERIFY */
43 
44  /* Malleability */
55 
56  /* softfork safeness */
62 
63  /* segregated witness */
71 
72  /* Taproot */
80 
81  /* Constant scriptCode */
84 
86 } ScriptError;
87 
88 #define SCRIPT_ERR_LAST SCRIPT_ERR_ERROR_COUNT
89 
90 std::string ScriptErrorString(const ScriptError error);
91 
92 #endif // BITCOIN_SCRIPT_SCRIPT_ERROR_H
enum ScriptError_t ScriptError
ScriptError_t
Definition: script_error.h:11
std::string ScriptErrorString(const ScriptError error)
bool error(const char *fmt, const Args &... args)
Definition: system.h:52