Open masscry opened 7 years ago
It seems that we need some functionality to identify head blocks with different data types.
I decided not to change block definitions itself, but to add some inner magic numbers to the headers of data stored inside blocks.
So, for example first two bytes of NMD equals to 0x02.
Empty blocks by default are filled with zeros, so let index header need to has an 0x01 as first two bytes.
It seems that we need some functionality to identify head blocks with different data types.
I decided not to change block definitions itself, but to add some inner magic numbers to the headers of data stored inside blocks.
So, for example first two bytes of NMD equals to 0x02.
Empty blocks by default are filled with zeros, so let index header need to has an 0x01 as first two bytes.