Skip to content

Consensys/fc-latency-map

FC Latency Map

CI pipeline Go Report Card

MIT Licensed Apache Licensed

Description

FC Latency Map is a service for Filecoin decentralized storage network to obtain the global latencies of all active miners.

It uses Ripe Atlas to collect measurements of active miners from relevant locations around the world.

Requirement

  • Docker installed.

  • 10Gb of free disk space.

How it works

See technical design documentation for details on how the FC Latency Map works.

See Manager documentation for details on starting the manager.

See Map documentation for details on starting the map.

Quickstart

Get the project

Clone the project locally:

git clone https://github.com/ConsenSys/fc-latency-map.git

Build the project

Build all the Docker images required to start the project:

make

Change default config

During build phase, .env config files were generated in ./manager/ and ./map/. To start the services, change the 2 default values on the manager config file.

Edit ./manager/.env and change:

[...]
FILECOIN_NODE_URL=changeme
[...]
RIPE_API_KEY=changeme

Start the project

Finally, start the services:

make run

The Fc Latency Map should be available at: https://localhost:3000

Examples

Example of Filecoin Latency Map:

Example of Filecoin Latency Map with Location and Miner selected: