Commit Graph

362 Commits

Author SHA1 Message Date
Dastan-glitch
fe4fe2f483 bin/tau: fixing imports 2022-04-20 20:28:35 -04:00
Dastan-glitch
243dfb882e bin/tau: splitting tau-cli code, cleanup and adding task state pause 2022-04-20 20:15:14 -04:00
lunar-mining
53f9ba6b2c dnetview: major refactor of Model/ underlying data structure
we create 3 types of info objects, NodeInfo, ConnectInfo, and
SessionInfo. NodeInfo is the parent and ConnectInfo and SessionInfo are children.

These info objects are passed into an enum:

enum SelectableObject {
    Node(NodeId)
    Session(SessionId)
    Connect(ConnectId)
}

We protect this data using mutexes and write it to a hashmap:

Mutex<FxHashMap<u32, SelectableObject>

View has not yet been updated with this new design.
2022-04-19 11:41:40 +02:00
lunar-mining
fc098b894c dnetview: move data parsing from RPC into isolated function, parse_data() 2022-04-19 11:41:40 +02:00
lunar-mining
4785fd31ff dnetview: updated README 2022-04-19 11:41:40 +02:00
lunar-mining
566bdf55ea dnetview: replace Vec<SelectableObject> with NodeInfo on model and view
this commit fixes ui::ui(). it's a temporary measure until we finish the
refactor.
2022-04-19 11:41:40 +02:00
lunar-mining
668fae0617 dnetview: create enum SelectableObject and pass to view, model
this commit breaks ui::ui()
2022-04-19 11:41:40 +02:00
lunar-mining
a21578088f dnetview: update README 2022-04-15 11:30:58 +02:00
ghassmo
3658317512 raft: exits gracefully and avoid detaching tasks 2022-04-14 09:33:37 +04:00
ghassmo
039392caa4 bin/tau: using channels instead of vector to receive logs from raft 2022-04-14 08:15:15 +04:00
ghassmo
705f88fde4 bin/tau: remove dataset path from MonthTask and Taskinfo structs 2022-04-13 07:54:45 +04:00
Dastan-glitch
7a11295b26 tau-cli: remove unused comments 2022-04-12 11:42:04 -04:00
Dastan-glitch
854198c78f tau-cli: using tau config file for rpc address 2022-04-12 11:38:15 -04:00
ghassmo
308fa4d0da bin/tau: clean up 2022-04-12 15:38:04 +04:00
parazyd
a3ed95ab79 rpc: WIP network transports, and darkfid skeleton for further integration. 2022-04-11 18:44:46 +02:00
ghassmo
0eff8d1b00 bin/taud: fix a bug when adding a task to month_tasks 2022-04-11 13:33:04 +04:00
ghassmo
1b1d0b2828 bin/taud: fix test && update config file 2022-04-11 13:02:20 +04:00
ghassmo
6074736a30 bin/taud: do initial sync on the startup and boradcast the local changes 2022-04-11 11:30:10 +04:00
ghassmo
d51ac9ad8a bin/tau-cli: minor changes 2022-04-11 11:29:12 +04:00
ghassmo
53a8953ffb bin/taud: use more general Settings struct for rpc, raft, and dataset configurations 2022-04-11 09:27:57 +04:00
ghassmo
dca3d745b4 bin/taud: udpate commits from raft when receive rpc request 2022-04-11 07:29:50 +04:00
narodnik
76488e64a6 messgae constraint 2022-04-09 17:39:00 +02:00
narodnik
5f550e8112 complete dao exec contract 2022-04-09 17:23:09 +02:00
ghassmo
29e5d4c285 bin/tau: add README.md 2022-04-09 11:27:53 +04:00
ghassmo
7c26f6e394 bin/tau: install tau using Makefile 2022-04-09 11:13:15 +04:00
ghassmo
2b9a24172a bin: move tau-cli taud to tau directory 2022-04-09 10:08:08 +04:00
ghassmo
5a7258d7f1 bin/taud: run tau on raft network 2022-04-09 09:56:44 +04:00
ghassmo
6dd107f4d4 bin/tau-cli: add listen command for cli 2022-04-09 09:53:52 +04:00
narodnik
570d5337bf basic dao zk contracts 2022-04-08 06:27:12 +02:00
parazyd
6479851e40 vanityadr: Remove serde_json dependency. 2022-04-07 11:41:51 +02:00
ghassmo
987bdfb9af bin/taud: remove obsolete crdt and add raft 2022-04-07 13:09:48 +04:00
parazyd
a2e6917f3c ircd: General code cleanup. 2022-04-03 22:42:23 +02:00
parazyd
47e4918d90 Example usage of cli_desc macro in zkas and vanityaddr. 2022-04-02 15:35:41 +02:00
Dastan-glitch
8d79575afe bin/tau-cli: rank as f32 and cleanup 2022-04-01 19:44:06 -04:00
ghassmo
16810f63d3 bin/taud: add sqlx crate 2022-03-31 09:52:03 +04:00
ghassmo
2dfafeef1d bin/taud: impl sync event for crdt 2022-03-31 09:52:03 +04:00
Dastan-glitch
1d64574bd8 bin/tau-cli: using three colors for max, mean and min rank 2022-03-30 00:19:20 -04:00
Dastan-glitch
9821f2db62 accepting float numbers for rank and implementing Encodable and Decodable traits for f64 2022-03-30 00:15:50 -04:00
ghassmo
b279caebf9 bin/taud: minor change 2022-03-29 07:49:39 +04:00
Dastan-glitch
70b43ca29b bin/tau-cli: add show subcommnd and minor fixes 2022-03-28 22:04:30 -04:00
lunar-mining
4a748d85f1 Merge branch 'master' of github.com:darkrenaissance/darkfi 2022-03-28 23:53:39 +02:00
parazyd
f940f653b2 General clippy cleanups. 2022-03-28 21:03:17 +02:00
ghassmo
d0549ce08b bin/taud: cargo clippy 2022-03-28 19:59:40 +02:00
ghassmo
3958becf6a bin/taud: fix tests 2022-03-28 19:59:40 +02:00
ghassmo
fb68a93ad7 bin/taud: remove boilerplate codes when parsing json Value objects 2022-03-28 19:59:40 +02:00
ghassmo
fbbcb1842b bin/taud: check if due timestamp is not less than current timestamp 2022-03-28 19:59:39 +02:00
ghassmo
bab301a970 bin/taud: create error type 2022-03-28 19:59:39 +02:00
ghassmo
b8b3a5a03b bin/taud: rpc notify crdt when receive update 2022-03-28 19:59:39 +02:00
ghassmo
637877d49f bin/taud: using serialization derives 2022-03-28 19:59:39 +02:00
parazyd
9abf62c980 Miscellaneous cleanups. 2022-03-28 19:59:39 +02:00