Commit c50a1120 authored by Pavel Vasin's avatar Pavel Vasin

implement a forgotten todo

Fixes a potential DoS vuln. Thanks to Jordan Earls for reminding.
parent 561fa0d3
......@@ -53,7 +53,6 @@ enum
SCRIPT_VERIFY_STRICTENC = (1U << 3),
// TODO add to MANDATORY_SCRIPT_VERIFY_FLAGS after the IsProtocolV3 fork
SCRIPT_VERIFY_ALLOW_EMPTY_SIG = (1U << 4),
SCRIPT_VERIFY_FIX_HASHTYPE = (1U << 5),
......@@ -69,6 +68,8 @@ enum
// details.
static const unsigned int MANDATORY_SCRIPT_VERIFY_FLAGS = SCRIPT_VERIFY_NULLDUMMY |
SCRIPT_VERIFY_STRICTENC |
SCRIPT_VERIFY_ALLOW_EMPTY_SIG |
SCRIPT_VERIFY_FIX_HASHTYPE |
SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY;
// Standard script verification flags that standard transactions will comply
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment