File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,22 @@ static constexpr unsigned int DEFAULT_DESCENDANT_SIZE_LIMIT_KVB{101};
69
69
* configurable as it doesn't materially change DoS parameters.
70
70
*/
71
71
static constexpr unsigned int EXTRA_DESCENDANT_TX_SIZE_LIMIT{10000 };
72
+
73
+
74
+ /* *
75
+ * Mandatory script verification flags that all new transactions must comply with for
76
+ * them to be valid. Failing one of these tests may trigger a DoS ban;
77
+ * see CheckInputScripts() for details.
78
+ *
79
+ * Note that this does not affect consensus validity; see GetBlockScriptFlags()
80
+ * for that.
81
+ */
82
+ static const unsigned int MANDATORY_SCRIPT_VERIFY_FLAGS = SCRIPT_VERIFY_P2SH;
83
+
72
84
/* *
73
85
* Standard script verification flags that standard transactions will comply
74
- * with. However scripts violating these flags may still be present in valid
75
- * blocks and we must accept those blocks .
86
+ * with. However we do not ban/disconnect nodes that forward txs violating
87
+ * these rules, for better forwards and backwards compatability .
76
88
*/
77
89
static constexpr unsigned int STANDARD_SCRIPT_VERIFY_FLAGS{MANDATORY_SCRIPT_VERIFY_FLAGS |
78
90
SCRIPT_VERIFY_DERSIG |
Original file line number Diff line number Diff line change @@ -38,16 +38,6 @@ class CScriptID : public BaseHash<uint160>
38
38
*/
39
39
static const unsigned int MAX_OP_RETURN_RELAY = 83 ;
40
40
41
- /* *
42
- * Mandatory script verification flags that all new blocks must comply with for
43
- * them to be valid. (but old blocks may not comply with) Currently just P2SH,
44
- * but in the future other flags may be added.
45
- *
46
- * Failing one of these tests may trigger a DoS ban - see CheckInputScripts() for
47
- * details.
48
- */
49
- static const unsigned int MANDATORY_SCRIPT_VERIFY_FLAGS = SCRIPT_VERIFY_P2SH;
50
-
51
41
enum class TxoutType {
52
42
NONSTANDARD,
53
43
// 'standard' transaction types:
You can’t perform that action at this time.
0 commit comments