Skip to content

bug: gnogenesis balances randomizes the balance list #4122

@zivkovicmilos

Description

@zivkovicmilos

Description

The current implementation of Balances within the gnogenesis balances command randomizes the balance list in the genesis.json upon every call, since it's a map and not a sorted slice. Due to this, the checksum of a genesis.json cannot be verified.

This task should tackle saving the balance sheet (which is a map) in a deterministic list within the genesis.json, with an order that is ugnot amount descending. Balances can remain a map, but its ToList method must return a deterministic slice, sorted as mentioned.

Metadata

Metadata

Assignees

Labels

help wantedWant to contribute? We recommend these issues.🐞 bugSomething isn't working🗺️good first issue🗺️Ideal for newcomer contributors

Type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions