aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2013-04-14 17:40:49 -0700
committerGavin Andresen <[email protected]>2013-04-14 17:40:49 -0700
commita3e7577a8199d95f0035570195f68a1acb2fa86e (patch)
tree18f768c4fcc2702e8ac465f192ba262cdf4a544b /src/main.cpp
parentMerge pull request #2527 from patbr0wn/master (diff)
parentRequire strictly-standard encodings in mempool (diff)
downloaddiscoin-a3e7577a8199d95f0035570195f68a1acb2fa86e.tar.xz
discoin-a3e7577a8199d95f0035570195f68a1acb2fa86e.zip
Merge pull request #2520 from sipa/strictmempool
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 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());
}