aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2013-04-14 00:17:49 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2013-04-14 00:17:49 +0200
commit20d0810f300fdcb6a0af6cb310c4702cdd956009 (patch)
tree02c3603527e7f2c643b0834eb0d91be54346c340 /src/main.cpp
parentac89a1ebe7110051bd35fbbcdb706030f07d561e (diff)
downloadbitcoin-20d0810f300fdcb6a0af6cb310c4702cdd956009.tar.xz
Require strictly-standard encodings in mempool
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index bf13e79151..6f3b5da961 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());
}