lunar-mining 04780f241b dnet: add README 2 years ago
..
.gitignore 13a18f3ca5 [dnet] Add .gitignore to prevent tracking log file 2 years ago
README.md 04780f241b dnet: add README 2 years ago
config.toml 2b35f1cfb9 dnet: update default config 2 years ago
main.py 36e39736d3 dnet: add lilith support to view 2 years ago
model.py adf9606dcd dnet: fix logic error due to misnamed variable 2 years ago
requirements.txt de3c4eb09f dnet: update dnet to new urwid version and fix asyncio usage 2 years ago
rpc.py 887ebff1f1 dnet: add lilith support to dnet (mostly) 2 years ago
scroll.py 02346fdfd4 dnet: move to /bin 2 years ago
view.py 6bf00e5d29 dnet: add additional check to prevent logic error 2 years ago

README.md

dnet

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

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

dnet 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.

Run

% git clone https://github.com/darkrenaissance/darkfi 
% cd darkfi/bin/dnet
% python main.py

Navigate up and down using the arrow keys. Type q to quit.

Usage

The dnet config file can be found in bin/dnet/config.toml. You must enter the RPC ports of the nodes you want to connect to and title them as you see fit. You must also specify whether it is a NORMAL or a LILITH node. The default config file uses localhost, but you can replace this with hostnames or external IP addresses.

Logging

dnet creates a log file in bin/dnet/dnet.log. To see json data and other debug info, tail the file like so:

tail -f dnet.log