Kevacoin source tree
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Jeff Garzik b4a72a75b4 contrib/linearize: split output files based on new-timestamp-year or max-file-size 11 years ago
..
README.md contrib/linearize: split output files based on new-timestamp-year or max-file-size 11 years ago
example-linearize.cfg contrib/linearize: split output files based on new-timestamp-year or max-file-size 11 years ago
linearize-data.py contrib/linearize: split output files based on new-timestamp-year or max-file-size 11 years ago
linearize-hashes.py Update linearize scripts. 11 years ago

README.md

Linearize

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

Step 1: Download hash list

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

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

$ ./linearize-data.py linearize.cfg

Required configuration file settings:

  • "input": bitcoind blocks/ directory containing blkNNNNN.dat
  • "hashlist": text file containing list of block hashes, linearized-hashes.py output.
  • "output_file": bootstrap.dat or
  • "output": output directory for linearized blocks/blkNNNNN.dat output

Optional config file setting for linearize-data:

  • "netmagic": network magic number
  • "max_out_sz": maximum output file size (default 100010001000)
  • "split_year": Split files when a new year is first seen, in addition to reaching a maximum file size.