This commit is contained in:
Sebastian
2024-04-06 15:44:07 +02:00
parent c34b370ad5
commit da991ae504
2 changed files with 2 additions and 2 deletions

View File

@@ -12,5 +12,5 @@ newest_file=$(ls -1 /backup/op-lisk-sepolia-node-*.peers 2>/dev/null | sort | ta
while IFS= read -r line; do
# Process each line here
docker exec rpc-op-lisk-sepolia-1 curl -X POST -H "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"opp2p_connectPeer\",\"params\":[$line],\"id\":1}" http://localhost:8545
docker exec rpc-op-lisk-sepolia-node-1 curl -s -X POST -H "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"opp2p_connectPeer\",\"params\":[$line],\"id\":1}" http://localhost:8545
done < "$newest_file"