2014-08-24 03:46:12 +02:00
|
|
|
# Linearize
|
|
|
|
Construct a linear, no-fork, best version of the blockchain.
|
|
|
|
|
2024-02-05 23:00:22 +01:00
|
|
|
## Step 0: Install neobytes_hash
|
2015-09-09 04:09:12 +02:00
|
|
|
|
2024-02-05 23:00:22 +01:00
|
|
|
https://github.com/neobytes-project/neobytes_hash
|
2015-09-09 04:09:12 +02:00
|
|
|
|
2014-08-24 03:46:12 +02:00
|
|
|
## Step 1: Download hash list
|
|
|
|
|
2015-07-10 18:21:21 +02:00
|
|
|
$ ./linearize-hashes.py linearize.cfg > hashlist.txt
|
2014-08-24 03:46:12 +02:00
|
|
|
|
|
|
|
Required configuration file settings for linearize-hashes:
|
|
|
|
* RPC: rpcuser, rpcpassword
|
|
|
|
|
|
|
|
Optional config file setting for linearize-hashes:
|
|
|
|
* RPC: host, port
|
|
|
|
* Block chain: min_height, max_height
|
|
|
|
|
|
|
|
## Step 2: Copy local block data
|
|
|
|
|
2015-07-10 18:21:21 +02:00
|
|
|
$ ./linearize-data.py linearize.cfg
|
2014-08-24 03:46:12 +02:00
|
|
|
|
|
|
|
Required configuration file settings:
|
|
|
|
* "input": bitcoind blocks/ directory containing blkNNNNN.dat
|
|
|
|
* "hashlist": text file containing list of block hashes, linearized-hashes.py
|
|
|
|
output.
|
2015-09-09 04:09:12 +02:00
|
|
|
* "output_file" for bootstrap.dat or "output" for output directory for linearized blocks/blkNNNNN.dat output
|
2014-08-24 03:46:12 +02:00
|
|
|
|
|
|
|
Optional config file setting for linearize-data:
|
2025-01-03 19:41:01 +01:00
|
|
|
* "netmagic": network magic number (default is '536e6f77', testnet)
|
|
|
|
* "genesis": genesis block hash (default is '00000348738de1d1d9dbc9633d2ed265fd8ca626edd91ff63001a2c3b97927fe', testnet)
|
2015-09-09 04:09:12 +02:00
|
|
|
* "max_out_sz": maximum output file size (default 100 \* 1000 \* 1000)
|
2014-08-24 17:37:14 +02:00
|
|
|
* "split_timestamp": Split files when a new month is first seen, in addition to
|
2014-08-24 04:59:16 +02:00
|
|
|
reaching a maximum file size.
|
2014-08-24 17:37:14 +02:00
|
|
|
* "file_timestamp": Set each file's last-modified time to that of the
|
|
|
|
most recent block in that file.
|