HomePhabricator

[refactor] Prep for scripted-diff by removing some \ns which annoy sed.

Description

[refactor] Prep for scripted-diff by removing some \ns which annoy sed.

Summary:
This is a redo of https://github.com/bitcoin/bitcoin/pull/15141/commits/7721ad64f40a0c67edefaaf7353264d78df8803e

I used some sed magic:

sed -n '/\.DoS(/{ :loop N; s/,\n\s*/, /; s/\n\s*//; /\.DoS(.*;/!b loop}; p' -i ../src/validation.cpp ../src/consensus/tx_verify.cpp

Test Plan: Loop at the result

Reviewers: #bitcoin_abc

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

Details

Provenance
Matt Corallo <git@bluematt.me>Authored on Nov 8 2017, 19:50
deadalnixCommitted on Jun 25 2020, 12:29
deadalnixPushed on Jun 25 2020, 12:31
deadalnixPushed on Jun 25 2020, 12:31
Differential Revision
D6729: [refactor] Prep for scripted-diff by removing some \ns which annoy sed.
Parents
rABC46872d36ce46: Allow use of state.Invalid() for all reasons
Branches
Unknown
Tags
Unknown