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 all peers\n------------------------\n" | |
docker exec -t $container_id tomo attach data/tomo.ipc --exec "for (i = 0; i < admin.peers.length; i++) { admin.removePeer(admin.peers[i].id) }" | |
# restart node |