Changeset View
Changeset View
Standalone View
Standalone View
contrib/linearize/README.md
# Linearize | # Linearize | ||||
Construct a linear, no-fork, best version of the Bitcoin blockchain. The scripts | Construct a linear, no-fork, best version of the Bitcoin blockchain. The scripts | ||||
run using Python 3 but are compatible with Python 2. | run using Python 3 but are compatible with Python 2. | ||||
## Step 1: Download hash list | ## Step 1: Download hash list | ||||
$ ./linearize-hashes.py linearize.cfg > hashlist.txt | $ ./linearize-hashes.py linearize.cfg > hashlist.txt | ||||
Required configuration file settings for linearize-hashes: | Required configuration file settings for linearize-hashes: | ||||
* RPC: `rpcuser`, `rpcpassword` | * RPC: `datadir` (Required if `rpcuser` and `rpcpassword` are not specified) | ||||
* RPC: `rpcuser`, `rpcpassword` (Required if `datadir` is not specified) | |||||
Optional config file setting for linearize-hashes: | Optional config file setting for linearize-hashes: | ||||
* RPC: `host` (Default: `127.0.0.1`) | * RPC: `host` (Default: `127.0.0.1`) | ||||
* RPC: `port` (Default: `8332`) | * RPC: `port` (Default: `8332`) | ||||
* Blockchain: `min_height`, `max_height` | * Blockchain: `min_height`, `max_height` | ||||
* `rev_hash_bytes`: If true, the written block hash list will be | * `rev_hash_bytes`: If true, the written block hash list will be | ||||
byte-reversed. (In other words, the hash returned by getblockhash will have its | byte-reversed. (In other words, the hash returned by getblockhash will have its | ||||
bytes reversed.) False by default. Intended for generation of | bytes reversed.) False by default. Intended for generation of | ||||
Show All 36 Lines |