Raven Core  3.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-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 {
16 
17  /* Max sizes */
24 
25  /* Failed verify operations */
31 
32  /* Logical/Format/Canonical errors */
38 
39  /* CHECKLOCKTIMEVERIFY and CHECKSEQUENCEVERIFY */
42 
43  /* Malleability */
54 
55  /* softfork safeness */
58 
59  /* segregated witness */
67 
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
enum ScriptError_t ScriptError
const char * ScriptErrorString(const ScriptError error)
Definition: script_error.cpp:9
ScriptError_t
Definition: script_error.h:10
bool error(const char *fmt, const Args &... args)
Definition: util.h:168