Skip to content

Commit

Permalink
Update README.md (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
khorolets authored Mar 21, 2024
1 parent 91eda25 commit 5ec67d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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'
```

0 comments on commit 5ec67d4

Please sign in to comment.