Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion clients/besu/enode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
set -e

data='{"jsonrpc":"2.0","method":"admin_nodeInfo","params":[],"id":1}'
TARGET_RESPONSE=$(curl -s -X POST -H "Content-Type: application/json" --data $data "localhost:8545" )
while [[ "$TARGET_RESPONSE" != *enode* ]]
do
TARGET_RESPONSE=$(curl -s -X POST -H "Content-Type: application/json" --data $data "localhost:8545" )
sleep 0.1
Comment thread
fab-10 marked this conversation as resolved.
done

TARGET_ENODE=$(echo ${TARGET_RESPONSE}| jq -r '.result.enode')
echo "$TARGET_ENODE"
Expand Down