Commit Graph

402 Commits

Author SHA1 Message Date
parazyd
e5f1df1144 faucetd: Register p2p protocols on all sessions. 2022-04-23 21:21:18 +02:00
parazyd
cf0fd46b07 darkfid: Add get_balances function and token lists. 2022-04-23 21:21:18 +02:00
parazyd
2168292102 darkfid: Separate JSON-RPC methods into submodules. 2022-04-23 21:21:18 +02:00
parazyd
809dd757fb darkfid: Run P2P on all sessions. 2022-04-23 21:21:17 +02:00
parazyd
09e8db29aa consensus: More debug info. 2022-04-23 21:21:16 +02:00
parazyd
74e0412238 consensus/sync: Add protocol mode. 2022-04-23 21:21:16 +02:00
parazyd
8c98f8eb0d darkfid: Create sync_p2p before consensus_p2p to be able to reference. 2022-04-23 21:21:16 +02:00
parazyd
ba401204d0 darkfid: Working separate consensus and block sync. 2022-04-23 21:21:16 +02:00
parazyd
797ce2a158 faucetd: Activate all protocols and blockchain sync. 2022-04-23 21:21:15 +02:00
parazyd
97dadd8bf0 consensus: Move proposal task into consensus/task. 2022-04-23 21:21:15 +02:00
parazyd
0299b45de3 Update all dependencies. 2022-04-23 21:21:15 +02:00
parazyd
f2479ca060 Replace old blockchain rocksdb module with new sled blockchain stores. 2022-04-23 21:21:14 +02:00
parazyd
a9f20aa1f1 faucetd: WIP airdrop. 2022-04-23 21:21:14 +02:00
parazyd
69c0e6cc0d darkfid: Always enable ProtocolTx. 2022-04-23 21:21:12 +02:00
parazyd
305699a363 consensus: Move p2p protocols into module. 2022-04-23 21:21:12 +02:00
parazyd
df13dc12f4 faucetd: Implement skeleton. 2022-04-23 21:21:12 +02:00
parazyd
b02933dcb9 darkfid: Simplify consensus proposal_task. 2022-04-23 21:21:12 +02:00
parazyd
d43d564813 darkfid: Use a flag to participate in consensus. 2022-04-23 21:21:11 +02:00
parazyd
a4dd04daf7 darkfid: Enable consensus task. 2022-04-23 21:21:11 +02:00
parazyd
c55c08b662 darkfid: Implement consensus P2P protocols. 2022-04-23 21:21:10 +02:00
parazyd
fab196067b darkfid: P2P protocol stub. 2022-04-23 21:21:10 +02:00
parazyd
d77d4dc02c Update dependencies. 2022-04-23 21:21:10 +02:00
parazyd
c29e1d63fa darkfid: Use async ctrlc. 2022-04-23 21:21:10 +02:00
parazyd
95d76d08f1 darkfid: Add P2P network stub. 2022-04-23 21:21:10 +02:00
parazyd
b3f5ad1c55 darkfid: Clean up RPC error messages and handling. 2022-04-23 21:21:09 +02:00
parazyd
78c78b1d84 darkfid: More functions and graceful shutdown handlers. 2022-04-23 21:21:09 +02:00
parazyd
ecca1a26ce darkfid: More WIP for new RPC. 2022-04-23 21:21:09 +02:00
ghassmo
3986a98561 bin/tau: add more debug messgaes 2022-04-23 16:57:35 +03:00
ghassmo
733d4d14ce Retrieve "bin/tau: remove month date dependency from tasks and orgnize them in pending and completed tasks" 2022-04-23 14:36:47 +03:00
lunar-mining
2e700efdc7 dnetview: create random id when channel is empty 2022-04-23 11:40:44 +02:00
lunar-mining
1301d2576c dnetview: serialize info into a hex string to create unique ids 2022-04-23 10:33:35 +02:00
Dastan-glitch
184c85c44c bin/tau: remove month date dependency from tasks and orgnize them in pending and completed tasks 2022-04-23 03:53:34 +03:00
lunar-mining
1b0e12aae4 dnetview/ parse: make NodeId unique to each node
solve problem of endless creation of new node_ids. we derive the id from
the node_name, insuring there are no duplicates.

our method for doing this right now is very weird- we convert the String
node_name into a u64. going forward we will likely replace the node_id
with a hash to be more straightforward.
2022-04-22 10:57:24 +02:00
lunar-mining
a9339c8018 dnetview/ error: created ValueIsNotObject error to handle when as_object == None 2022-04-22 08:28:39 +02:00
lunar-mining
fd588ef16c dnetview/ parse: return SessionInfo from parsing functions + cleanup 2022-04-22 08:03:04 +02:00
lunar-mining
4f8a8cd6d8 dnetview/ parse_data: change if/else parse logic to match 2022-04-21 09:52:12 +02:00
lunar-mining
ec26d1254f dnetview/ parse_data: add data to model and simplify
remove redundant model_vec
2022-04-21 09:08:54 +02:00
lunar-mining
0a7fe06449 dnetview/model: cleanup 2022-04-21 08:22:49 +02:00
lunar-mining
cc96f904b9 dnetview: make info hashmap singular and update README
instead of making several info hashmaps like so:

node_info = HashMap<NodeId, NodeInfo>
session_info = HashMap<SessionId, SessionInfo>

we make a single info hashmap:

infos = HashMap<Id, SelectableObject>

this is so we can keep track of what kind of selectable object the ID is
associated with.
2022-04-21 08:15:20 +02:00
Dastan-glitch
d36dd1847e bin/tau: proper error handling 2022-04-20 21:25:48 -04:00
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