lunar-mining
7d3f7ecc14
dnetview: add line numbers to msg log
2022-06-26 07:56:27 +02:00
lunar-mining
249e4d46b6
dnetview: display null outbound connections as null instead of ignoring
2022-06-23 14:38:19 +02:00
lunar-mining
8e26094717
dnetview: show offline nodes if rpc can't connect
2022-06-22 17:59:23 +02:00
lunar-mining
b593498055
dnetview: get and render remote_node_id. fix bug w unnecessary async thread
2022-06-22 17:13:58 +02:00
lunar-mining
93c786093b
dnetview: keep trying to connect in a loop
2022-06-22 16:29:10 +02:00
lunar-mining
89eb222c21
dnetview: display offline nodes even when we can't connect to rpc
2022-06-22 16:29:10 +02:00
lunar-mining
9495c43a2e
dnetview: display p2p state w each node
2022-06-21 20:31:32 +02:00
lunar-mining
2eba9954af
dnetview: display external_addr as null when it's a null value
2022-06-21 17:39:04 +02:00
ghassmo
01ac20aab4
util/cli: refactoring loading log config & add path for log file
2022-05-31 04:29:03 +03:00
Dastan-glitch
55c828cec9
bin/dnetview: fix format
2022-05-29 21:37:34 +00:00
ghassmo
75072bbb5b
dnetview: cargo clippy
2022-05-27 03:44:50 +03:00
parazyd
61bee58239
rpc: Cleanup and separate namespaces into client and server.
2022-05-22 20:54:17 +02:00
parazyd
587f0b4b93
make fix and minor manual cleanups.
2022-05-22 12:29:23 +02:00
lunar-mining
c34330c32e
dnetview/ view: removed some debug statements
2022-05-21 09:00:15 +02:00
lunar-mining
837292472e
dnetview: final bug fix and clean up
...
clear active_ids before writing to it to insure offline nodes don't get
saved perpetually
2022-05-21 08:56:12 +02:00
lunar-mining
a5af09e26c
dnetview: partial fix for out of bounds index error
...
* fix bug that make duplicate empty ids
* disable parse_manual
* standard
2022-05-21 00:25:58 +02:00
lunar-mining
85b601b121
dnetview: don't exit poll() when error is returned
2022-05-19 12:21:19 +02:00
lunar-mining
4541e00eac
dnetview: propagate errors more descriptively
2022-05-19 12:09:47 +02:00
lunar-mining
fe69bf144a
dnetview: explicit error handling when opening an RPC channel
2022-05-19 11:27:06 +02:00
lunar-mining
40b41b527a
dnetview: if the RPC cannot connect, render the node as offline.
2022-05-19 10:40:11 +02:00
lunar-mining
9b8ba6329f
src/util: create NanoTimestamp tool to get and display nanoseconds
...
bin/dnetview, src/net/channel.rs: add NanoTimestamp to net and dnetview
2022-05-18 11:15:38 +02:00
parazyd
c63aabf17f
Update project dependencies.
2022-05-16 17:40:44 +02:00
lunar-mining
ede61e628a
net/ dnetview: add inbound accept_addr to get_info and display
2022-05-16 12:52:50 +02:00
lunar-mining
513cb2b56d
net, dnetview: pass util::Timestamp instead of u64
...
use featureful darkfi time utils instead of basic function
unix_timestamp()
2022-05-15 11:34:58 +02:00
ghassmo
5cec2b98ff
rpcclient: don't use Executor for spawn a task
2022-05-13 11:33:02 +03:00
ghassmo
69fe7485b7
dnetview: use the new rpc client api
2022-05-13 07:22:44 +03:00
lunar-mining
0d5e1930e7
dnetview: add timestamp to msg log
2022-05-11 17:22:10 +02:00
ghassmo
d320edeecb
bin: upgrade send_request rpc function across bins
2022-05-11 17:20:59 +02:00
lunar-mining
090fc39455
dnetview: add external_addr to node info
...
* add external addr to Model.NodeInfo
* parse external addr from RPC
* display in View
2022-05-08 12:23:15 +02:00
lunar-mining
40e48eacb0
dnetview: cleanup msg log Span assignment and cargo fmt
...
cargo fmt picked up a few issus in zk/circuit/lead_contract.rs and
example/lead.rs
2022-05-08 10:39:14 +02:00
lunar-mining
5bc2b32daf
dnetview/ README: small tweaks
2022-05-04 09:29:56 +02:00
lunar-mining
fd35254be1
dnetview: update README
2022-05-04 09:26:59 +02:00
lunar-mining
8f7da1c9ac
dnetview: check whether selectable object is empty
...
* handle error that occurs when data is not fully initialized
2022-05-04 08:58:37 +02:00
lunar-mining
4edebb22ab
dnetview: fix bugs in error handling
...
* only render node_info if our data is not empty
* handle when msgs are Null
* print unexpected data to string
2022-05-04 08:50:48 +02:00
lunar-mining
58131d42ce
dnetview: add multitail to README
2022-05-03 12:38:19 +02:00
lunar-mining
1e1cdd03d8
dnetview: updated README
2022-05-03 12:34:57 +02:00
lunar-mining
5f1085853c
dnetview: trick to return View error from anon closure
...
due to the issue of returning a value inside an anonymous closure, we
process errors received from View as follows:
let mut err: Option<DnetViewError> = None;
terminal.draw(|f| match view.render(f) {
Ok(()) => {}
Err(e) => {
err = Some(e);
}
})?;
match err {
Some(e) => return Err(e),
None => {}
}
we create a None option wrapper around DnetViewError. we then write the
error value to the option, and later perform a match on the error and
return.
2022-05-03 12:10:08 +02:00
lunar-mining
0ba3dece3a
dnetview: custom error handling
...
we migrate custom errors to DnetViewError and DnetViewResult.
there is one outstanding problem:
terminal.draw(|f| match view.render(f) {
Ok(()) => {}
Err(e) => {
debug!("{}", e);
}
})?;
errors that may occur inside of View are currently being propagated into
this anonymous closure, where they cannot be properly handled.
2022-05-03 11:56:09 +02:00
lunar-mining
acd6d9549d
dnetview: cleanup
...
* pass references instead of consuming values wherever possible
* create more descriptive function names
* seperate distinct behavior into separate functions
* tidy variable names and standarize across program
2022-05-03 09:01:20 +02:00
lunar-mining
2148c094b5
dnetview: create new msg log HashMap and render it
...
messages are perodically cleared on the p2p side so dnetview must keep
track of messages.
because View has no permanence, we create a HashMap<String, Vec<(String,
String)> in Model to store the message log.
this allows us to keep track of the message log for every connection.
the values are copied into View before each render.
2022-05-02 12:06:35 +02:00
lunar-mining
fac25736a1
dnetview: remove unused data structures and cleanup
2022-05-01 10:29:56 +02:00
lunar-mining
2746baa290
dnetview: render info on right at the index of selected object
2022-05-01 10:15:18 +02:00
lunar-mining
cc94d18d1a
dnetview: serialize msg log to Vec<(String, String)>
2022-05-01 10:15:18 +02:00
lunar-mining
e6b88ec99a
dnetview/ view: fixed bug wherein list had empty spaces
2022-05-01 10:15:18 +02:00
lunar-mining
7e9308465c
dnetview/ view: render last_msg
2022-04-30 09:37:27 +02:00
lunar-mining
6c83022572
dnetview/ view: init_active_ids()
...
write active ids to active_ids
render as a scrollable list
2022-04-29 10:07:35 +02:00
lunar-mining
c6189e3b0f
dnetview/ View: only render sessions if they are not empty
2022-04-29 09:42:11 +02:00
lunar-mining
d31add9648
dnetview/view: create active_ids that discards offline connections
2022-04-29 09:23:40 +02:00
lunar-mining
83631661d3
dnetview/ parse: save ids of all selectable objects, not just nodes
2022-04-29 08:10:57 +02:00
lunar-mining
b60c4f13fb
dnetview/ view: re-implement render() and cleanup
2022-04-29 08:02:53 +02:00