Ninjastic
Home
Search
Users
Boards
Addresses
Ctrl + K
Toggle theme
Open menu
Post
Edited versions
Quotes to this post
Post
3802959
Topic
355378
Board
Development & Technical Discussion
Re: block000xx.dat file format
by
danneu
on
03/12/2013, 06:11:26 UTC
blk*.dat format is a repetition of:
- magic (uint32-le)
- size (uint32-le) - bytes count of following block
- block (
https://en.bitcoin.it/wiki/Protocol_specification#block
)
The block spec points out that `bits` is a uint32-le.
`bits` represents difficulty in compact form and you can see how to expand it here
https://en.bitcoin.it/wiki/Difficulty
.
Quote
but it's funny that no comprehensive network protocol and file format description exists in the wild.
The wiki (
https://en.bitcoin.it/wiki/Protocol_specification
) is pretty comprehensive.