This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Change genesis.code encoding in chainspec to bytes. #4454
Labels
I4-annoyance
The client behaves within expectations, however this “expected behaviour” itself is at issue.
Z1-easy
Can be fixed primarily by duplicating and adapting code by an intermediate coder
Z6-mentor
An easy task where a mentor is available. Please indicate in the issue who the mentor could be.
Currently
genesis.code
inside chain spec JSON is encoded as rawVec<u8>
which results in a JSON array containing shitload of numbers, which by default when pretty-printed results in one number per line.Instead we should encode
code
as hex (seeBytes
wrapper) as it's way more compact, but to maintain backward compatibility we should support both formats when deserializing the chain spec.CC @JoshOrndorff, I saw that on your seminar and thought that we could fix it :)
The text was updated successfully, but these errors were encountered: