lunar-mining 5f7199a1a7 net/ dnetview: show list of hosts in outbound info 3 роки тому
..
src 5f7199a1a7 net/ dnetview: show list of hosts in outbound info 3 роки тому
Cargo.toml ee4c99387e Update project dependencies. 3 роки тому
README.md 5bc2b32daf dnetview/ README: small tweaks 4 роки тому
dnetview_config.toml e4838c4335 dnetview: lilith nodes support implemented 3 роки тому

README.md

Dnetview

A simple tui to explore darkfi p2p network topology. Explore:

  1. Active p2p nodes
  2. Outgoing, incoming and manual sessions
  3. Each associated connection and recent messages.

Dnetview is based on the design-pattern Model, View, Controller. We create a logical seperation between the underlying data structure or Model; the ui rendering aspect which is the View; and the Controller or game engine that makes everything run.

Install

% git clone https://github.com/darkrenaissance/darkfi 
% cd darkfi
% make BINS=dnetview

Usage

On first run, dnetview will create a config file in .config/darkfi. You must manually enter the RPC ports of the nodes you want to connect to and title them as you see fit.

Check the example config file for more details.

Run dnetview as follows:

dnetview -v

Navigate up and down using j and k.

Logging

Dnetview creates a logging file in /tmp/dnetview.log. To see json data and other debug info, tail the file like so:

tail -f /tmp/dnetview.log

Or use multitail for colored output:

multitail -c /tmp/dnetview.log