Skip to content

Commit

Permalink
clients/nimbus-el: use admin_nodeInfo instead of net_nodeInfo (ethere…
Browse files Browse the repository at this point in the history
…um#896)

Most/all EL client seem to use admin_nodeInfo so we adjusted this in nimbus-eth1
  • Loading branch information
kdeme authored and Eikix committed Mar 1, 2024
1 parent 6d720a7 commit b099c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/nimbus-el/enode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Immediately abort the script on any error encountered
set -e

TARGET_RESPONSE=$(curl -s -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"net_nodeInfo","params":[],"id":1}' "localhost:8545" )
TARGET_RESPONSE=$(curl -s -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"admin_nodeInfo","params":[],"id":1}' "localhost:8545" )

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

0 comments on commit b099c72

Please sign in to comment.