Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #8757 from EOSIO/docs/2.0.x-cleos-net-status
Browse files Browse the repository at this point in the history
link cleos net status reference doc with the peer network protocol doc
  • Loading branch information
lparisc authored Mar 5, 2020
2 parents c6d854b + 6eaf5bd commit 37e8a18
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/02_cleos/03_command-reference/net/status.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,18 @@ Usage: cleos net status host
Positionals:
host TEXT The hostname:port to query status of connection
```

Given, a valid, existing `hostname:port` parameter the above command returns a json response looking similar to the one below:

```
{
"peer": "hostname:port",
"connecting": false/true,
"syncing": false/true,
"last_handshake": {
...
}
}
```

The `last_handshake` structure is explained in detail in the [Network Peer Protocol](https://developers.eos.io/welcome/latest/protocol/network_peer_protocol#421-handshake-message) documentation section.

0 comments on commit 37e8a18

Please sign in to comment.