From 5ec67d4620aa188eac4018db3790897b43708706 Mon Sep 17 00:00:00 2001 From: Bohdan Khorolets Date: Thu, 21 Mar 2024 10:56:23 +0200 Subject: [PATCH] Update README.md (#92) --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8a871ec..556d72e 100644 --- a/README.md +++ b/README.md @@ -250,7 +250,8 @@ For our own needs we are working on [NEAR Lake Framework](https://github.com/nea Here is a script that asks the RPC node about its peers and makes a list of boot nodes for you: -```--boot-nodes `curl -X POST https://rpc.mainnet.near.org \ +``` +--boot-nodes `curl -X POST https://rpc.mainnet.near.org \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", @@ -262,5 +263,6 @@ jq '.result.active_peers as $list1 | .result.known_producers as $list2 | $list1[] as $active_peer | $list2[] | select(.peer_id == $active_peer.id) | "\(.peer_id)@\($active_peer.addr)"' |\ -awk 'NR>2 {print ","} length($0) {print p} {p=$0}' ORS="" | sed 's/"//g'```` +awk 'NR>2 {print ","} length($0) {print p} {p=$0}' ORS="" | sed 's/"//g' +```