bitcoinjs / fast-dat-parser

Superfast blockchain parser for stats
MIT License
74 stars 26 forks source link

Nothing on stdout #8

Closed karelbilek closed 6 years ago

karelbilek commented 6 years ago

I might be missing something

When I try to run the parser, I see messages on stderr, but nothing in stdout

cat ~/.bitcoin/blocks/blk00000.dat | ./parser -j4 -t1 > wat
Allocated IO buffer (104857600 bytes)
Allocated parse buffer (104857600 bytes)
Initialized 4 threads in the thread pool
-- Parsed 0 blocks (read 102400 KiB, 100 MiB total, skipped 0KiB)
-- Parsed 114484 blocks (read 28670 KiB, 127 MiB total, skipped 0KiB) EOF
Parsed 119969 blocks (127 MiB)in 1 seconds

but

$ wc -l wat
0

only -t0 returns binary output. Am I running it wrong?

karelbilek commented 6 years ago

Oh nevermind, now I understand I first have to make the whitelist. Closing

dcousens commented 6 years ago

@runn1ng odd, if the the whitelist was empty, it should output every block, did adding -w really resolve your issue?

dcousens commented 6 years ago

Resolved in c110b97 - @karel-3d did you do this?