|
|
7 ay önce | |
|---|---|---|
| .. | ||
| example | 1 yıl önce | |
| src | 9 ay önce | |
| Cargo.toml | 7 ay önce | |
| README.md | 1 yıl önce | |
| dchatd_config.toml | 1 yıl önce | |
A simple chat program to document DarkFi net code. Tutorial can be found in the DarkFi book.
cd darkfi
make BINS=lilith
./lilith
You should see the following output:
Config file created in '"/home/USER/.config/darkfi/lilith_config.toml"'. Please review it and try again.
Add dchat to the config as follows, keeping in mind that the port number must match the seed specified in Alice and Bob's settings (see: main.rs).
[network."dchat"]
port = 50515
localnet = true
Now run lilith:
./lilith
make BINS="dchat"
Run dchat as an inbound node:
./dchat a
Run dchat as an outbound node:
./dchat b
Dchat creates a logging file for the inbound node at /tmp/alice.log. Logging for the outbound node is found at /tmp/bob.log.
Tail them like so:
tail -f /tmp/alice.log
Or use multitail for colored output:
multitail -c /tmp/alice.log
./example/seed.sh
./example/node1.sh
./example/node2.sh