Commit Graph

504 Commits

Author SHA1 Message Date
ghassmo
058ca299a1 bin/tau-cli: clean up filter function 2022-05-03 14:39:42 +03: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
182ee14212 ircd: example config files 2022-05-03 10:05:53 +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
Dastan-glitch
962ddf3a28 bin/tau: minor changes 2022-05-03 01:40:58 +03:00
Dastan-glitch
cd82162c89 bin/tau: add example to README 2022-05-03 01:40:24 +03:00
parazyd
09bfbc7285 blockchain: Cleanup and documentation. 2022-05-02 15:43:06 +02:00
ghassmo
8cdd47bf1b bin/ircd: minor changes 2022-05-02 15:29:10 +03: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
ghassmo
95b32a7390 raft: remove p2p code from start function & add p2p get_info() to ircd rpc 2022-05-01 21:33:03 +03:00
ghassmo
34b34f8988 raft: change the name of p2p module to protocol_raft.rs 2022-05-01 20:01:02 +03:00
ghassmo
6fa29eb48d bin/ircd: use only tcp connection for irc clients 2022-05-01 19:50:21 +03:00
ghassmo
12ceee09bc bin/taud: general clean up 2022-05-01 19:50:21 +03:00
parazyd
1dd63d58d2 node: More debugging. 2022-05-01 12:31:31 +02:00
parazyd
0fd0cee7fb consensus: Don't use wrapping struct for transactions. 2022-05-01 10:49:42 +02:00
parazyd
695d7ed084 tokenlist: Move the token list into an Arc, and share around. 2022-05-01 10:49:31 +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
Dastan-glitch
eb25d9a382 bin/tau: allow more filters and use structopt for taucli 2022-05-01 05:44:51 +03:00
Dastan-glitch
419401216a bin/tau: fixing raft send type in taud and clean up 2022-05-01 05:42:25 +03:00
parazyd
08e3d81f65 drk: WIP transfers. 2022-04-30 21:15:56 +02:00
parazyd
d045ad493b faucetd: Use latest token IDs impl. 2022-04-30 20:50:37 +02:00
parazyd
609afbd9c7 Rework token lists and ID generation. 2022-04-30 19:45:00 +02:00
aggstam
992573eeea darkfid2/main.rs: added log::debug import that was missing 2022-04-30 19:43:56 +03:00
parazyd
b67522107d darkfid: Startup debugging. 2022-04-30 13:06:43 +02:00
parazyd
569692eaf4 faucetd: Fix clippy false positive. 2022-04-30 12:36:47 +02:00
parazyd
e8e7af759c Minor clipply cleanups. 2022-04-30 12:13:27 +02:00
parazyd
0aad546779 faucetd: Sync args and config. 2022-04-30 12:09:18 +02:00
parazyd
a6b05b5c72 darkfid: Default JSON-RPC port as per config file. 2022-04-30 12:09:18 +02:00
parazyd
a2a972a747 bin/drk: Overhaul. 2022-04-30 12:09:18 +02:00
parazyd
06e8b569ca faucetd/darkfid: Change p2p-related flags to include "p2p". 2022-04-30 10:47:51 +02:00
lunar-mining
55fd61695c ircd: standardize README formatting 2022-04-30 09:52:33 +02:00
lunar-mining
7e9308465c dnetview/ view: render last_msg 2022-04-30 09:37:27 +02:00
ghassmo
f625dc23eb ircd: irc server support tls protocol 2022-04-29 18:33:48 +03:00
ghassmo
78522e1de8 ircd, tau: update README.md & change install instructions 2022-04-29 15:20:23 +03:00
ghassmo
7b16860f7d tau-cli: change bin name to tau 2022-04-29 15:20:00 +03:00
ghassmo
03be1965ee tau: remove Makefile 2022-04-29 15:19:33 +03: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
lunar-mining
6a41fa5124 dnetview/ View, Model: simplify data structure
removed unnecessary data structures from View and simplified data
structures into 3 types:

model {
    id_list,
    node_info,
    selectables,
    }

view {
    active_ids,
    node_info,
    active_selectables,
}
2022-04-29 07:46:18 +02:00
lunar-mining
bd71f34894 Merge branch 'master' of github.com:darkrenaissance/darkfi 2022-04-29 07:14:08 +02:00
Dastan-glitch
713a937c6b bin/tau: add default value for rpc_listen 2022-04-29 02:23:47 +03:00