summaryrefslogtreecommitdiff
path: root/bip-0119.mediawiki
diff options
context:
space:
mode:
Diffstat (limited to 'bip-0119.mediawiki')
-rw-r--r--bip-0119.mediawiki4
1 files changed, 3 insertions, 1 deletions
diff --git a/bip-0119.mediawiki b/bip-0119.mediawiki
index 9649065..1068e24 100644
--- a/bip-0119.mediawiki
+++ b/bip-0119.mediawiki
@@ -171,7 +171,9 @@ Where
bool CheckDefaultCheckTemplateVerifyHash(const std::vector<unsigned char>& hash) {
// note: for anti-DoS, a real implementation *must* cache parts of this computation
- // to avoid quadratic hashing DoS, including
+ // to avoid quadratic hashing DoS all variable length computations must be precomputed
+ // including hashes of the scriptsigs, sequences, and outputs. See the section
+ // "Denial of Service and Validation Costs" below.
return GetDefaultCheckTemplateVerifyHash(current_tx, current_input_index) == uint256(hash);
}