Skip to content

Commit

Permalink
stop sequencers as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonNorthey92 committed Nov 20, 2024
1 parent 3d6c0e2 commit 4b3fb18
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions e2e/setup-raft.bash
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ for rpc in "${conductor_rpcs[@]}"; do
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"conductor_pause","params":[],"id":4}' $rpc
done

for rpc in "${opnode_rpcs[@]}"; do
curl -X POST -H "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"admin_stopSequencer\",\"params\":[],\"id\":3}" $rpc
done


# for each raft port in op-conductor, add as a voter. this may error when adding self as a voter with the leader, but that's ok, the others should succeed
for raft in "${conductor_rafts[@]}"; do
curl -X POST -H "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"conductor_addServerAsVoter\",\"params\":[\"$raft\", \"$raft\"],\"id\":4}" ${conductor_rpcs[0]}
Expand Down

0 comments on commit 4b3fb18

Please sign in to comment.