From 20d0810f300fdcb6a0af6cb310c4702cdd956009 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Sun, 14 Apr 2013 00:17:49 +0200 Subject: [PATCH] Require strictly-standard encodings in mempool --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index bf13e7915..6f3b5da96 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -768,7 +768,7 @@ bool CTxMemPool::accept(CValidationState &state, CTransaction &tx, bool fCheckIn // Check against previous transactions // This is done last to help prevent CPU exhaustion denial-of-service attacks. - if (!tx.CheckInputs(state, view, true, SCRIPT_VERIFY_P2SH)) + if (!tx.CheckInputs(state, view, true, SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC)) { return error("CTxMemPool::accept() : ConnectInputs failed %s", hash.ToString().c_str()); }