moonbeam icon indicating copy to clipboard operation
moonbeam copied to clipboard

moonriver genesis chain-spec fails genesis config checks

Open CertainLach opened this issue 2 years ago • 2 comments

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.

CertainLach avatar Aug 30 '22 11:08 CertainLach

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

girazoki avatar Aug 31 '22 07:08 girazoki

any luck @CertainLach ?

girazoki avatar Sep 06 '22 12:09 girazoki

Closing

crystalin avatar Jan 04 '23 08:01 crystalin