kotalco / core-api

Kotal core API
0 stars 0 forks source link

Polkadot update error #305

Closed ahmed-abdelhamid closed 10 months ago

ahmed-abdelhamid commented 10 months ago

In polkadot nodes, both "validator" and "rpc" values can't be "true" at the same time. This is how I handle this:

If "rpc" is True and the user tried to turn "validator" on I make sure the request body sent like this { validator: true, rpc: false }

If "validator" is True and the user tried to turn "rpc" on I make sure the request body sent like this { validator: false, rpc: true }

That was working before but now I have this error

data: {
      message: "can't update node by name my-polkadot",
      status: 500,
      name: 'Internal Server Error'
}
mohamed-abdelrhman commented 10 months ago

According to the operator ,

rpc must be false if node is validator and,

pruning must be false if node is validator.

so if the user wants to update the validator value to true, the system should :

if the user want to update rpc or pruning => true , the system should:

ahmed-abdelhamid commented 10 months ago

Solved