Changeset View
Changeset View
Standalone View
Standalone View
src/policy/policy.cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
// NOTE: This file is intended to be customised by the end user, and includes | // NOTE: This file is intended to be customised by the end user, and includes | ||||
// only local node policy logic | // only local node policy logic | ||||
#include "policy/policy.h" | #include <policy/policy.h> | ||||
#include "script/interpreter.h" | #include <script/interpreter.h> | ||||
#include "tinyformat.h" | #include <tinyformat.h> | ||||
#include "util.h" | #include <util.h> | ||||
#include "utilstrencodings.h" | #include <utilstrencodings.h> | ||||
#include "validation.h" | #include <validation.h> | ||||
/** | /** | ||||
* Check transaction inputs to mitigate two potential denial-of-service attacks: | * Check transaction inputs to mitigate two potential denial-of-service attacks: | ||||
* | * | ||||
* 1. scriptSigs with extra data stuffed into them, not consumed by scriptPubKey | * 1. scriptSigs with extra data stuffed into them, not consumed by scriptPubKey | ||||
* (or P2SH script) | * (or P2SH script) | ||||
* 2. P2SH scripts with a crazy number of expensive CHECKSIG/CHECKMULTISIG | * 2. P2SH scripts with a crazy number of expensive CHECKSIG/CHECKMULTISIG | ||||
* operations | * operations | ||||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |