gcarq / rusty-blockparser

Bitcoin Blockchain Parser written in Rust language
GNU General Public License v3.0
370 stars 145 forks source link

No blk files found #26

Closed jrazer closed 7 years ago

jrazer commented 7 years ago

Parser not found blockchain files

root@ubuntu-minimal:~/rusty-blockparser/target/release# ./rusty-blockparser -vv -c litecoin --chain-storage litecoin --blockchain-dir ~/.litecoin/blocks/ csvdump lite [19:39:16] INFO - main: Starting rusty-blockparser v0.6.1 ... [19:39:16] DEBUG - main: Using LogLevel TRACE [19:39:16] INFO - blkfile: Reading files from /root/.litecoin/blocks/ ... [19:39:16] TRACE - blkfile: Found 0 blk files [19:39:16] ERROR - rusty_blockparser: Cannot load blockchain from: '/root/.litecoin/blocks/'. No blk files found! Runtime Error

mikispag commented 7 years ago

This is probably due to https://github.com/gcarq/rusty-blockparser/pull/25/ - @RCasatta, can you check? Thanks!

mikispag commented 7 years ago

I can reproduce with regular, non symlink files.

RCasatta commented 7 years ago

Sorry, I can't reproduce on Mac OS X 10.12.6 and Ubuntu 16.04.3 LTS rustc 1.21.0 rusty-blockparser 0.6.1

Is yours a scan from scratch or perhaps you have min_blk_idx already at the last block file?

mikispag commented 7 years ago

I have this problem when running from scratch too.

gcarq commented 7 years ago

Does it make a difference when --blockchain-dir is specified?

mikispag commented 7 years ago

I can't verify right now, but what do you have in mind? :)

gcarq commented 7 years ago

Nothing particular, but I tested it with Dogecoin and setting a blockchain directory, which worked as expected

jrazer commented 7 years ago

With --blockchain-dir for litecoin and without - for bitcoim same error

mikispag commented 7 years ago

If --reindex is passed, it works to me.

mikispag commented 7 years ago

This is due to start_blk_idx being set to a negative number in my fork. Will fix on my side. Unsure if the problem is also here.

jrazer commented 7 years ago

Thanks, wait for fixed version