Author

Topic: script to get only first block from all blk*.dat files (Read 155 times)

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
There are some who still regularly contribute here, and because of that it does not matter how many there are, just that there are some if it interests them to respond for some reason they could.

True, but it won't hurt to ask the question of multiple places.
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
I am testing some filters and it turns out that at a specific block the code get stuck, I want to find that block and run test on it separately.

I still don't understand what you're trying to accomplish, but i doubt you'll get detailed/specific answer because there aren't many Bitcoin Core developer/contributor in this forum.

You might want try your luck on IRC channels or https://bitcoin.stackexchange.com/
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
I don't know the technical details
3. Bitcore Core use obfuscation key on LevelDB


Is that unique to each to program on each computer?

According to answer on https://bitcoin.stackexchange.com/a/50902, it's unique to each program.

The scheme is very simple - a randomly chosen (per database) 64-bit value that gets XORed into all values in the database. This is fast, simple, and so far, effective.
newbie
Activity: 2
Merit: 0
I don't know the technical details, but for starters :
1. Bitcoin Core use LevelDB
2. blk*.dat have fixed maximum size, so you might only get partial data of the "first" block in a blk*.dat file
3. Bitcore Core use obfuscation key on LevelDB, see https://bitcoin.stackexchange.com/a/50902 for detailed info

P.S. this sounds like XY problem, what are you trying to accomplish by get only first block from all blk*.dat files

````````````````````````````````````
I am testing some filters and it turns out that at a specific block the code get stuck, I want to find that block and run test on it separately.
newbie
Activity: 2
Merit: 0
Sorry if that question is already asked and answered earlier, but I couldn't find it in this forum.

I am testing bitcoin data by using different filters. Now I want to write a script which will only consider the first block in blk*.dat file. I am confused about where to start.
Your help will be highly appreciated.
Thank you
Jump to: