0
Error: Service(Other("Error parsing spec file: missing field `nodeAuthorization` at line 89 column 5"))

This is the error message I encounter when trying to build a raw chain spec json file.

1
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Commented Aug 10, 2022 at 7:23

1 Answer 1

1

I guess that you follow this tutorial https://docs.substrate.io/tutorials/get-started/permissioned-network/

I think you should check your chain spec configuration in fn testnet_genesis

and check this

 node_authorization: NodeAuthorizationConfig {
   nodes: vec![
     (
       OpaquePeerId(bs58::decode("12D3KooWBmAwcd4PJNJvfV89HwE48nwkRmAgo8Vy3uQEyNNHBox2").into_vec().unwrap()),
       endowed_accounts[0].clone()
     ),
     (
       OpaquePeerId(bs58::decode("12D3KooWQYV9dGMFoRzNStwpXztXaBUjtPqi6aU76ZgUriHhKust").into_vec().unwrap()),
       endowed_accounts[1].clone()
     ),
   ],
 },

Last but not least, you should give us more details

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.