HomePhabricator

scripted-diff: Remove DoS calls to CValidationState

Description

scripted-diff: Remove DoS calls to CValidationState

Summary:
-BEGIN VERIFY SCRIPT-
sed -i 's/\.DoS(\(.*\), REJECT_\(.*\), \(true\|false\)/.DoS(\1, REJECT_\2/' src/validation.cpp src/consensus/tx_verify.cpp src/consensus/tx_check.cpp
sed -i 's/state.GetRejectCode(), state.GetRejectReason(), [^,]\+, state.GetDebugMessage())/state.GetRejectCode(), state.GetRejectReason(), state.GetDebugMessage())/' src/validation.cpp
sed -i 's/\.DoS([^,]*, /.Invalid\(/' src/validation.cpp src/consensus/tx_verify.cpp src/consensus/tx_check.cpp
-END VERIFY SCRIPT-

Co-authored-by: Suhas Daftuar <sdaftuar@gmail.com>

This is a backport of Core PR15141 : https://github.com/bitcoin/bitcoin/pull/15141/commits/aa502b88d10c2c3ac56d9163555849b96dc4df1e

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc

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

Details

Provenance
Matt Corallo <git@bluematt.me>Authored on Apr 11 2019, 18:11
deadalnixCommitted on Jun 25 2020, 12:39
deadalnixPushed on Jun 25 2020, 12:40
Differential Revision
D6730: scripted-diff: Remove DoS calls to CValidationState
Parents
rABCbc3fa66b8393: [refactor] Prep for scripted-diff by removing some \ns which annoy sed.
Branches
Unknown
Tags
Unknown