ergoplatform / ergo

Ergo protocol description & reference client implementation
https://ergoplatform.org/
Creative Commons Zero v1.0 Universal
504 stars 170 forks source link

Accounting for unparsed header bytes #2151

Closed kushti closed 5 months ago

kushti commented 7 months ago

close #2150

Currently , adding new header bytes is supported by header serialization, but unparsed bytes are not stored in Header, thus roundtrip property is broken. There is need to add unparsed bytes to Header and then at some point in when nearly all the nodes are updated it will be secure to add new bytes.

This done in this PR, with new bytes being accounted by clients >= 5.0.22 version only after 7.0 protocol activation (so 7.0 would be breaking for clients < 5.0.22)