Last active
January 17, 2019 09:22
-
-
Save etienne-napoleone/341d4ac999f4a8b3d3f1153b489c2418 to your computer and use it in GitHub Desktop.
Remove faulty peer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# get tomochain container id | |
container_id=$(docker ps -q -f "name=tomochain") | |
# remove first peer | |
echo "\n------------------------\n!! Removing first peer\n------------------------\n" | |
docker exec -t $container_id tomo attach data/tomo.ipc --exec "admin.removePeer(admin.peers[0].id)" | |
# restart node | |
echo "\n------------------------\n!! Restarting node\n------------------------\n" | |
tmn update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment