Bitcoin – Degree DB – Block Index – Studying worth for block hash

0
56


I’m making an attempt to learn the worth towards block hash in stage DB of Bitcoin node database – Block/index. For Genesis block, I get 88 bytes which I need to parse. I attempted to comply with directions in https://bitcoin.stackexchange.com/questions/67515/format-of-a-block-keys-contents-in-bitcoinds-leveldb however wasnt ready to try this efficiently as the primary 4 bytes ought to be model however I get an invalid model.

I attempted obfuscating the entire worth as effectively however nonetheless the primary 4 bytes doesn’t give me a legitimate model. I should be doing one thing mistaken however not in a position to establish that.

Worth I get (in hex string)

7c2bac1d1d00ffff495fab294a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b0000000000000000000000000000000000000000000000000000000000000000000000010800010b0050e78b

Extra useful resource I attempted – Hyperlink

Observe: I’m utilizing c# to learn and parse the info.



Supply hyperlink

Leave a reply