GeniusVentures / SuperGenius

MIT License
4 stars 3 forks source link

Protobuf in blockchain data #34

Open henriqueaklein opened 7 months ago

henriqueaklein commented 7 months ago

The current blockchain implementation serializes and deserializes into crdt by calling scale::encode method on SuperGenius and writing as a base::Buffer. That could make it difficult for the dashboard to get this data.

Consider changing how things are serialized by inserting protobuf structures instead.

henriqueaklein commented 7 months ago

Got the block header, hash and data to be serialized/deserialized in protobuf structures, however hash wasn't used on the dashboard, since it's mostly used for internal purposes.