From 22ec185dc879a4a0f1112a2b71bef59debfd1bfb Mon Sep 17 00:00:00 2001 From: Dan Pulitano Date: Wed, 11 Dec 2024 14:15:25 -0500 Subject: [PATCH] add params to examples --- .../chain-operators/tools/op-conductor.mdx | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pages/builders/chain-operators/tools/op-conductor.mdx b/pages/builders/chain-operators/tools/op-conductor.mdx index 506a90a36..50acf2fcb 100644 --- a/pages/builders/chain-operators/tools/op-conductor.mdx +++ b/pages/builders/chain-operators/tools/op-conductor.mdx @@ -544,14 +544,14 @@ AddServerAsVoter adds a server as a voter to the cluster. ```sh curl -X POST -H "Content-Type: application/json" --data \ - '{"jsonrpc":"2.0","method":"conductor_addServerAsVoter","params":[, , ],"id":1}' \ + '{"jsonrpc":"2.0","method":"conductor_addServerAsVoter","params":[, , ],"id":1}' \ http://127.0.0.1:8547 ``` ```sh - cast rpc conductor_addServerAsVoter --rpc-url http://127.0.0.1:8547 + cast rpc conductor_addServerAsVoter --rpc-url http://127.0.0.1:8547 ``` @@ -569,14 +569,14 @@ The non-voter will not participate in the leader election. ```sh curl -X POST -H "Content-Type: application/json" --data \ - '{"jsonrpc":"2.0","method":"conductor_addServerAsNonvoter","params":[],"id":1}' \ + '{"jsonrpc":"2.0","method":"conductor_addServerAsNonvoter","params":[, , ],"id":1}' \ http://127.0.0.1:8547 ``` ```sh - cast rpc conductor_addServerAsNonvoter --rpc-url http://127.0.0.1:8547 + cast rpc conductor_addServerAsNonvoter --rpc-url http://127.0.0.1:8547 ``` @@ -593,14 +593,14 @@ RemoveServer removes a server from the cluster. ```sh curl -X POST -H "Content-Type: application/json" --data \ - '{"jsonrpc":"2.0","method":"conductor_removeServer","params":[],"id":1}' \ + '{"jsonrpc":"2.0","method":"conductor_removeServer","params":[, ],"id":1}' \ http://127.0.0.1:8547 ``` ```sh - cast rpc conductor_removeServer --rpc-url http://127.0.0.1:8547 + cast rpc conductor_removeServer --rpc-url http://127.0.0.1:8547 ``` @@ -611,7 +611,7 @@ RemoveServer removes a server from the cluster. API related to consensus. -TransferLeader transfers leadership to another server. +TransferLeader transfers leadership to another server (resigns). @@ -641,14 +641,14 @@ TransferLeaderToServer transfers leadership to a specific server. ```sh curl -X POST -H "Content-Type: application/json" --data \ - '{"jsonrpc":"2.0","method":"conductor_transferLeaderToServer","params":[],"id":1}' \ + '{"jsonrpc":"2.0","method":"conductor_transferLeaderToServer","params":[, , ],"id":1}' \ http://127.0.0.1:8547 ``` ```sh - cast rpc conductor_transferLeaderToServer --rpc-url http://127.0.0.1:8547 + cast rpc conductor_transferLeaderToServer --rpc-url http://127.0.0.1:8547 ``` @@ -704,7 +704,7 @@ Active returns true if the op-conductor is active (not paused or stopped). CommitUnsafePayload commits an unsafe payload (latest head) to the consensus -layer. +layer. TODO - usage examples that include required params are needed