Skip to content

Commit

Permalink
clients/nimbus-el: use admin_nodeInfo instead of net_nodeInfo (#896)
Browse files Browse the repository at this point in the history
Most/all EL client seem to use admin_nodeInfo so we adjusted this in nimbus-eth1
  • Loading branch information
kdeme authored Oct 3, 2023
1 parent b97408c commit 0cddc86
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 0cddc86

Please sign in to comment.