Dashify "linearize" README.md and switch the tool to mainnet

This commit is contained in:
Alexander Block 2018-01-18 18:40:06 +01:00
parent 2e02b167ea
commit e5daae2913
2 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ standalone hash lists but safe to use with linearize-data.py, which will output
the same data no matter which byte format is chosen. the same data no matter which byte format is chosen.
The `linearize-hashes` script requires a connection, local or remote, to a The `linearize-hashes` script requires a connection, local or remote, to a
JSON-RPC server. Running `bitcoind` or `bitcoin-qt -server` will be sufficient. JSON-RPC server. Running `dashd` or `dash-qt -server` will be sufficient.
## Step 2: Copy local block data ## Step 2: Copy local block data
@ -38,13 +38,13 @@ Required configuration file settings:
Optional config file setting for linearize-data: Optional config file setting for linearize-data:
* `file_timestamp`: Set each file's last-modified time to that of the most * `file_timestamp`: Set each file's last-modified time to that of the most
recent block in that file. recent block in that file.
* `genesis`: The hash of the genesis block in the blockchain. (default is '00000bafbc94add76cb75e2ec92894837288a481e5c005f6563d91623bf8bc2c', testnet) * `genesis`: The hash of the genesis block in the blockchain. (default is '00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6', mainnet)
* `input`: bitcoind blocks/ directory containing blkNNNNN.dat * `input`: dashd blocks/ directory containing blkNNNNN.dat
* `hashlist`: text file containing list of block hashes created by * `hashlist`: text file containing list of block hashes created by
linearize-hashes.py. linearize-hashes.py.
* `max_out_sz`: Maximum size for files created by the `output_file` option. * `max_out_sz`: Maximum size for files created by the `output_file` option.
(Default: `1000*1000*1000 bytes`) (Default: `1000*1000*1000 bytes`)
* `netmagic`: Network magic number. (default is 'cee2caff', testnet) * `netmagic`: Network magic number. (default is 'bf0c6bbd', mainnet)
* `rev_hash_bytes`: If true, the block hash list written by linearize-hashes.py * `rev_hash_bytes`: If true, the block hash list written by linearize-hashes.py
will be byte-reversed when read by linearize-data.py. See the linearize-hashes will be byte-reversed when read by linearize-data.py. See the linearize-hashes
entry for more information. entry for more information.

View File

@ -289,7 +289,7 @@ if __name__ == '__main__':
settings['rev_hash_bytes'] = settings['rev_hash_bytes'].lower() settings['rev_hash_bytes'] = settings['rev_hash_bytes'].lower()
if 'netmagic' not in settings: if 'netmagic' not in settings:
settings['netmagic'] = 'cee2caff' settings['netmagic'] = 'bf0c6bbd'
if 'genesis' not in settings: if 'genesis' not in settings:
settings['genesis'] = '00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6' settings['genesis'] = '00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6'
if 'input' not in settings: if 'input' not in settings: