linearize-data.py error #4893

issue ghost opened this issue on September 10, 2014
  1. ghost commented at 11:23 PM on September 10, 2014: none

    The latest linearize-data.py errors out with the following on Ubuntu 14.04 i.e. running past the most recent .dat/the max_height setting:

    Error:

    Input file/home/example/.bitcoin/blocks/blk00174.dat Traceback (most recent call last): File "./linearize-data.py", line 231, in <module> copydata(settings, blkindex, blkset) File "./linearize-data.py", line 113, in copydata inF = open(fname, "rb") IOError: [Errno 2] No such file or directory: '/home/example/.bitcoin/blocks/blk00174.dat'

    linearize.cfg:

    # bitcoind RPC settings (linearize-hashes)
    rpcuser=example
    rpcpassword=example
    host=127.0.0.1
    port=8332
    
    # bootstrap.dat hashlist settings (linearize-hashes)
    max_height=313000
    
    # bootstrap.dat input/output settings (linearize-data)
    netmagic=f9beb4d9
    input=/home/example/.bitcoin/blocks
    output_file=/home/example/Downloads/bootstrap.dat
    hashlist=hashlist.txt
    split_year=1
    
  2. jgarzik commented at 12:25 AM on September 11, 2014: contributor

    It emits an error, yes, but the operation otherwise completed successfully.

    This is the same as bitcoind, incidentally: loop through block files, and stop when an error is reached.

    The fix is to trap the error and end gracefully, but this is merely cosmetic. Outside of emit'ing an error to the console, linearize functioned as intended.

  3. ghost commented at 10:23 PM on September 11, 2014: none

    Thanks for addressing this!

  4. laanwj closed this on Sep 12, 2014

  5. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me