Skip to content

Better message than explicit panic when initial monetary mass differ from sum of balances in genesis

Motivation

When starting duniter with custom data genesis, if the parameter initial_monetary_mass is not the sum of the balances of all identities + wallets, it exit with code 101 and only a explicit panic message.

Suggested Solution

Maybe we can display a better message for this. It's hard do discover why it fail when testing with custom data...

Additional Information

Related to this line https://git.duniter.org/nodes/rust/duniter-v2s/-/blob/master/node/src/chain_spec/gen_genesis_data.rs?ref_type=heads#L666

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information