Page MenuHomePhabricator

scripted-diff: Rename sync_blocks to send_blocks
ClosedPublic

Authored by Fabien on May 20 2020, 08:48.

Details

Summary

...to avoid name collisions and confusion

-BEGIN VERIFY SCRIPT-
FILE_LIST=$(git grep -l 'def sync_blocks' ./test/functional/*.py)
sed -i -e 's/def sync_blocks/def send_blocks/g'   $FILE_LIST
sed -i -e 's/self.sync_blocks/self.send_blocks/g' $FILE_LIST
-END VERIFY SCRIPT-

Partial backport of core PR15773:
https://github.com/bitcoin/bitcoin/pull/15773/commits/fa4680ed0996a7c621265a34392c3eca827b2e48

Test Plan
./test/functional/test_runner.py feature_block feature_csv_activation

Diff Detail

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

Event Timeline

Fabien requested review of this revision.May 20 2020, 08:48

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

deadalnix requested changes to this revision.May 20 2020, 11:42
deadalnix added a subscriber: deadalnix.

I think there are naked calls to sync_block remaining. Can you fix this first?

The command in the description were fubared, I had to fix them. Did you run them?

This revision now requires changes to proceed.May 20 2020, 11:42
This revision is now accepted and ready to land.May 20 2020, 11:51