mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Merge pull request #2520 from sipa/strictmempool
Require strictly-standard encodings in mempool
This commit is contained in:
commit
a3e7577a81
@ -768,7 +768,7 @@ bool CTxMemPool::accept(CValidationState &state, CTransaction &tx, bool fCheckIn
|
|||||||
|
|
||||||
// Check against previous transactions
|
// Check against previous transactions
|
||||||
// This is done last to help prevent CPU exhaustion denial-of-service attacks.
|
// 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());
|
return error("CTxMemPool::accept() : ConnectInputs failed %s", hash.ToString().c_str());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user