moonbeam
moonbeam copied to clipboard
moonriver genesis chain-spec fails genesis config checks
Repro:
# Generate spec
moonbeam build-spec --chain moonriver-local > spec.json
# Build raw spec, execute GenesisConfig
moonbeam build-spec --chain spec.json --raw
There is an error in the logs:
Join candidates failed in genesis with error DispatchErrorWithPostInfo { post_info: PostDispatchInfo { actual_weight: None, pays_fee: Pays::Yes }, error: Module(ModuleError { index: 20, error: [7, 0, 0, 0], message: Some("
CandidateBondBelowMin") }) }
And there are no collators specified in ParachainStaking.SelectedCandidates
, resulting in panicked at 'Block invalid, supplied author is not eligible.'
error at runtime
If I edit spec.json, by multiplying value for every ParachainStaking.Candidates
by 1000, then genesis is successfully built.
I believe this is because if you input a spec json file, its name has to start with the name of the chain. Try doing:
# Generate spec
moonbeam build-spec --chain moonriver-local > moonriver_spec.json
# Build raw spec, execute GenesisConfig
moonbeam build-spec --chain moonriver_spec.json --raw
any luck @CertainLach ?
Closing