Skip to content

glottologist/cosmoping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cosmoping

Latency report generator for Cosmos SDK addr book

Usage

To get a basic latency report run cosmoping against a CosmosSDK addrbook.json file:

cosmoping latency --addrbook-path <path>

The terminal will print the results in markdown format:

| IP Address | Port   | ID         | Latency(ms) | City | Country |
| ---------- | ------ | ---------- | ----------- | ---- | ------- |
| <IP1>      | <Port> | <Peer Id1> | 36354       |      |         |
| <IP2>      | <Port> | <Peer Id2> | 36328       |      |         |

Results output

You can supply an output path to save the results to file:

cosmoping latency --addrbook-path <path> --output-path ./latencies.md

Location data

You can get additional IP location data by supplying an api key from IpInfo:

cosmoping latency --addrbook-path <path> --output-path ./latencies.md --location-api-key <API KEY>

This will enrich the resolvable IPs with locations:

| IP Address | Port   | ID         | Latency(ms) | City    | Country    |
| ---------- | ------ | ---------- | ----------- | ------- | ---------- |
| <IP1>      | <Port> | <Peer Id1> | 36354       | <City1> | <Country1> |
| <IP2>      | <Port> | <Peer Id2> | 36328       | <City2> | <Country1> |

About

Latency report generator for Cosmos SDK addr book

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published