README.md raw

Linearize

Construct a linear, no-fork, best version of the Bitcoin blockchain.

Step 1: Download hash list

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

Required configuration file settings for linearize-hashes:

Optional config file setting for linearize-hashes:

byte-reversed. (In other words, the hash returned by getblockhash will have its bytes reversed.) False by default. Intended for generation of 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 linearize-hashes script requires a connection, local or remote, to a JSON-RPC server. Running bitcoind or bitcoin-qt -server will be sufficient.

Step 2: Copy local block data

$ ./linearize-data.py linearize.cfg

Required configuration file settings:

or

Optional config file setting for linearize-data:

will be printed.

respectively, to the current time and to the timestamp of the most recent block written to the script's blockchain.

linearize-hashes.py.

(Default: 1000*1000*1000 bytes)

be written to a cache so that the blockchain doesn't have to be sought again. This option specifies the cache size. (Default: 100*1000*1000 bytes)

will be byte-reversed when read by linearize-data.py. See the linearize-hashes entry for more information.

addition to reaching a maximum file size (max_out_sz).