Closed ahmed-abdelhamid closed 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 }
{ 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 }
{ 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' }
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:
Solved
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