aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrick Lodder <[email protected]>2015-10-17 13:30:23 +0200
committerPatrick Lodder <[email protected]>2015-10-17 13:30:23 +0200
commit876e01e16cc04824b23ce9f35dbfd88b0223e452 (patch)
tree25acb49fbf7ef4f304337f46a1174c6d20fa36b5 /src
parentMerge pull request #1296 from Sporklin/1.8.3-dev-miniupnp (diff)
downloaddiscoin-876e01e16cc04824b23ce9f35dbfd88b0223e452.tar.xz
discoin-876e01e16cc04824b23ce9f35dbfd88b0223e452.zip
Make low-s verification mandatory for standard script verification
1.8.3 backport This change makes a node only accept transactions with low-s signature encoding for relay and mining, but allows transactions with high-s signature encoding in mined blocks (no blocks will be rejected)
Diffstat (limited to 'src')
-rw-r--r--src/script.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script.h b/src/script.h
index 0d8a8544b..99724f895 100644
--- a/src/script.h
+++ b/src/script.h
@@ -207,7 +207,8 @@ static const unsigned int MANDATORY_SCRIPT_VERIFY_FLAGS = SCRIPT_VERIFY_P2SH;
// blocks and we must accept those blocks.
static const unsigned int STANDARD_SCRIPT_VERIFY_FLAGS = MANDATORY_SCRIPT_VERIFY_FLAGS |
SCRIPT_VERIFY_STRICTENC |
- SCRIPT_VERIFY_NULLDUMMY;
+ SCRIPT_VERIFY_NULLDUMMY |
+ SCRIPT_VERIFY_LOW_S;
// For convenience, standard but not mandatory verify flags.
static const unsigned int STANDARD_NOT_MANDATORY_VERIFY_FLAGS = STANDARD_SCRIPT_VERIFY_FLAGS & ~MANDATORY_SCRIPT_VERIFY_FLAGS;