HomePhabricator

Update contrib/linearize scripts to use the new .format() method

Description

Update contrib/linearize scripts to use the new .format() method

Summary: Avoid using % to format strings, switch to the new method instead.

Test Plan:

./src/bitcoind &

Create a config file called linearize.cfg with this content:

datadir=<your_data_dir>
max_height=10
hashlist=hashlist.txt
intput=<your_data_dir>/blocks
output_file=<some_path>/blockchain.dat

Then:

./contrib/linearize/linearize-hashes.py linearize.cfg > hashlist.txt

A file named hashlist.txt with 11 hashes should have been created.

./contrib/linearize/linearize-data.py linearize.cfg

A blockchain.dat file should be created under the path specified in the
configuration file.

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: teamcity, schancel

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

Details

Provenance
FabienAuthored on Feb 19 2019, 10:18
deadalnixPushed on Feb 19 2019, 19:40
Reviewer
Restricted Project
Differential Revision
D2572: Update contrib/linearize scripts to use the new .format() method
Parents
rSTAGING123404b4fa44: Fix feature_dbcrash failure
Branches
Unknown
Tags
Unknown