Bitcoin Core  0.18.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 typedef enum ScriptError_t
10 {
15 
16  /* Max sizes */
23 
24  /* Failed verify operations */
30 
31  /* Logical/Format/Canonical errors */
37 
38  /* CHECKLOCKTIMEVERIFY and CHECKSEQUENCEVERIFY */
41 
42  /* Malleability */
53 
54  /* softfork safeness */
57 
58  /* segregated witness */
66 
67  /* Constant scriptCode */
70 
72 } ScriptError;
73 
74 #define SCRIPT_ERR_LAST SCRIPT_ERR_ERROR_COUNT
75 
76 const char* ScriptErrorString(const ScriptError error);
77 
78 #endif // BITCOIN_SCRIPT_SCRIPT_ERROR_H
enum ScriptError_t ScriptError
const char * ScriptErrorString(const ScriptError error)
Definition: script_error.cpp:8
ScriptError_t
Definition: script_error.h:9
bool error(const char *fmt, const Args &... args)
Definition: system.h:61