Page MenuHomePhabricator

scripted-diff: Remove DoS calls to CValidationState
ClosedPublic

Authored by deadalnix on Jun 24 2020, 23:31.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABCcc54e8f8bc35: 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

Depends on D6729

Test Plan
ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

This revision is now accepted and ready to land.Jun 24 2020, 23:59