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