HomePhabricator

fix a test in anticipation of SCRIPT_VERIFY_INPUT_SIGCHECKS activation

Description

fix a test in anticipation of SCRIPT_VERIFY_INPUT_SIGCHECKS activation

Summary:
Currently we have just one test which creates an abnormal 'abusive'
script of the kind that SCRIPT_VERIFY_INPUT_SIGCHECKS (see D4617) is
designed to block from the mempool.

This adds padding to the P2SH script thereby pushing the scriptSig
length up to at least 198. ( This script does 6 sigchecks, and
6 * 43 - 60 = 198 ; note the resulting density for this input,
including the other input fields, is 6 / (41+198) = 1/39.8
sigchecks/byte )

Test Plan:

ninja all
test_runner.py abc-mempool-accept-txn

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D5016

Details

Provenance
Mark Lundeberg <markblundeberg@users.noreply.github.com>Authored on Jan 18 2020, 09:19
markblundebergPushed on Jan 20 2020, 04:19
Reviewer
Restricted Project
Differential Revision
D5016: fix a test in anticipation of SCRIPT_VERIFY_INPUT_SIGCHECKS activation
Parents
rABC70b586dfbdf0: [abc-wallet-standardness] do test the signing error code
Branches
Unknown
Tags
Unknown