Skip to content

Using blocktools with regtest #11

@datGryphon

Description

@datGryphon

Hi,

I wanted to say thanks for the work you've done so far, this a really great tool that has helped me gain a lot of insight about the structure of the block data stored locally on disk. However, I'm currently working on a project where I want to scan .dat files for orphaned blocks that I purposely generate in regtest mode, but the parser does not like the mostly empty block contents. Particularly the transactions which have no transaction scripts.

I have tried a little bit to modify the code to fix the errors I've encountered but i can only get the first block after the genesis block to parse correctly. I was hoping that maybe you had some insight about how I could adjust the tool to let me parse these nearly empty blocks correctly or where I could go to find more information about the format of .dat files produced by bitcoin. Attached below is the .dat file I've been working with. The first block after the genesis block should be the orphan block. There should be 3 additional blocks after that in the file.

Thank you,
Caleb

blk00000.dat.zip

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions