gcarq / rusty-blockparser

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

I am getting some weird error #107

Open sc0rp10n-py opened 8 months ago

sc0rp10n-py commented 8 months ago
[05:28:45] INFO - main: Starting rusty-blockparser v0.11.0 ...
[05:28:45] INFO - index: Reading index from ./dat/index ...
[05:28:45] INFO - index: Got longest chain with 0 blocks ...
thread 'main' panicked at src/blockchain/parser/index.rs:43:58:
called `Option::unwrap()` on a `None` value
stack backtrace:
   0:        0x1041f4fc0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hb478ebbfb46e27ce
   1:        0x10418acd8 - core::fmt::write::he4d5fa2daff1f531
   2:        0x1041d3af0 - std::io::Write::write_fmt::hc5a47a68eba63d9f
   3:        0x1041f670c - std::sys_common::backtrace::print::h79bd952cc5812e7a
   4:        0x1041f5edc - std::panicking::default_hook::{{closure}}::h82301f6222887737
   5:        0x1041f6f58 - std::panicking::rust_panic_with_hook::h1e70c5d905e30e9d
   6:        0x1041f69e0 - std::panicking::begin_panic_handler::{{closure}}::h399e32952efd26a4
   7:        0x1041f6970 - std::sys_common::backtrace::__rust_end_short_backtrace::h2ab87f841a2323e7
   8:        0x1041f6964 - _rust_begin_unwind
   9:        0x1041fd29c - core::panicking::panic_fmt::h33e40d2a93cab78f
  10:        0x1041fd3c4 - core::panicking::panic::h57fd475c037a9df3
  11:        0x10413b39c - rusty_blockparser::blockchain::parser::chain::ChainStorage::new::h005d5b2efca18ac7
  12:        0x104149414 - rusty_blockparser::main::h4801b95e064894fb
  13:        0x1041250dc - std::sys_common::backtrace::__rust_begin_short_backtrace::hfaccf7f7991b3212
  14:        0x10414e7cc - _main

I ran the command like this

export RUST_BACKTRACE=full && ./target/release/rusty-blockparser --coin=litecoin --blockchain-dir=./dat csvdump ./dump/

Am I doing something wrong?

gjorm commented 8 months ago

I'm getting this same error, but with Bitcoin. File permissions shouldn't be an issue at least in my case, they all belong to me. I'm wondering if there's a dependency we are missing?

Update: I pointed rusty-blockparser to look at the blocks directory within the main bitcoin structure and it started working. User error :)