This is a re-implementation of the CKB-Node-Probe project, Contains 3 module:
This is a dialer/probe module, used to dial/find reachable peers. It won't dial reachable peers directly, instead it will receive peer info from MQTT channel peer/needs_dial
, and dial for that.
(Except bootnodes)
This is the center that controls which peer should be called, which peer should be treated as online and so on. Think it as a broadcaster and msg channel guider.
This is a query service provided for the frontend
First, you'll need to cp .env.example and modify the value to secure your MQTT and Reidis.
For the data center, run docker-compose up -d
, it will:
- start a MQTT service, expose at
1883
&1884
- start a Redis server, expose at
6379
- start the expose server(query api service), expose at 1800
- start marci service
If you want to run a dialer, run docker build . -t ckb-discovery && docker run --restart always --name ckb-discovery -e MQTT_URL="mqtt://54.255.71.126:1883" -d ckb-discovery
Remember to replace 127.0.0.1
with the data center ip.