Commit Graph

3274 Commits

Author SHA1 Message Date
ghassmo
c057c610d4 net3: new redesign for acceptor and connector and use more general form for transport protocols 2022-05-04 01:44:30 +03:00
ghassmo
a57a2fc0c5 net3: create wrapper for stream returned by Transport connections 2022-05-04 01:44:30 +03:00
Dastan-glitch
62cb7fc9a4 bin/tau: update README and taud_config 2022-05-04 01:15:15 +03:00
Dastan-glitch
93a2fc7722 bin/tau: remove temp file when done 2022-05-04 01:14:36 +03:00
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
2b3c50b086 doc: added dnetview 2022-05-03 12:34:42 +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
be3f87cfea net: Rework transports for protocol upgrades. 2022-05-03 00:18:53 +02:00
parazyd
09bfbc7285 blockchain: Cleanup and documentation. 2022-05-02 15:43:06 +02:00
ghassmo
e7157c4418 raft: fix a bug related to commits length 2022-05-02 16:28:15 +03: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
mohab
a54f835c00 [zk/arith_chip] removed pow gate 2022-05-01 21:50:22 +02:00
mohab
acc15409b4 [zk/lead] removed unused imports 2022-05-01 21:50:22 +02:00
mohab
debfef26f9 enable lead example 2022-05-01 21:50:22 +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
70c4f4d81d raft: add Listener node 2022-05-01 21:04:17 +03:00
ghassmo
3aeebadba8 raft: make primitives module and do encapsulation 2022-05-01 20:26:01 +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
e0549eb25f wallet: Fix test units. 2022-05-01 17:28:21 +02:00
parazyd
4aca4b9c62 Working token transfers.
One bug I've noticed is that the faucet found a duplicate nullifier
upon receiving the block/tx after finalization of the transfer.
2022-05-01 17:00:08 +02:00
parazyd
1dd63d58d2 node: More debugging. 2022-05-01 12:31:31 +02:00
parazyd
4ff4d43ca4 consensus/proto: Cleanup. 2022-05-01 12:31:31 +02:00
parazyd
2972a2d5e6 consensus/task/proposal: Cleanup. 2022-05-01 12:31:31 +02:00
parazyd
2526f603ff node: Add debug messages when building halo2 keys. 2022-05-01 10:49:42 +02:00
parazyd
57d4e2443a zk/circuit: Disable lead contract. 2022-05-01 10:49:42 +02:00
parazyd
0fd0cee7fb consensus: Don't use wrapping struct for transactions. 2022-05-01 10:49:42 +02:00
parazyd
0d708d935b consensus/state: Have consensus nodes update local state on fin blocks. 2022-05-01 10:49:31 +02:00
parazyd
695d7ed084 tokenlist: Move the token list into an Arc, and share around. 2022-05-01 10:49:31 +02:00
parazyd
23f86748b0 node/client: Fix sapling zk proof creation. 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
28129fe33a zk: Fix module. 2022-05-01 00:40:40 +02:00
mohab
1aa3e0245c [zk/lead_contract] used y_commit in place it's coordinates 2022-04-30 22:39:49 +02:00
mohab
6765f079df [example/lead] serialize point to deserizlied base instead of PointNode 2022-04-30 22:39:49 +02:00
mohab
762d80ac8b [zk/circuit/lead_contract] removed redundant serial number 2022-04-30 22:39:49 +02:00
mohab
d5cb5d3424 [example/lead] pad sk with zeros, mismatch in sk len, and node len 2022-04-30 22:39:49 +02:00