Commit Graph

2985 Commits

Author SHA1 Message Date
mohab
687ca3dd44 [doc/architecture/blockchain] fixed some typos 2022-04-21 21:48:44 +02:00
aggstam
d7bf42a67f validatord/protocol_sync.rs: handle_receive_block correct flag value handling 2022-04-21 20:02:10 +03:00
aggstam
66baa52e91 validatord/protocol_sync.rs: handle_receive_block to be executed based on node mode flag 2022-04-21 19:58:31 +03:00
aggstam
caeeb2648e src/consensus/state.rs: unproposed txs from extending chain only, fix an index bug when generating a new fork chain 2022-04-21 19:25:24 +03:00
aggstam
bae1ce4ad3 validatord: removed dummy log message used for testing 2022-04-21 16:46:08 +03:00
aggstam
9e613d514a validatord: moved tx protocol and json rpc to main p2p subnet, protocol_sync.rs: upon receiving finalized block, node removes blocks txs from unconfirmed_txs, /src/consensus/state.rs: decoupled removal of unconfirmed txs 2022-04-21 16:40:52 +03:00
ghassmo
c9c3c9881d src/net2: WIP clean up 2022-04-21 12:09:11 +03: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
aggstam
c217030367 validatord: sync tasks and protocols implemented 2022-04-21 04:43:37 +03: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
ghassmo
ffc16cc985 example/p2pdebug: using net2 for debugging 2022-04-20 17:17:40 +03:00
ghassmo
cd46d368e6 create net2 module with support for multi transport protocol 2022-04-20 17:17:40 +03:00
aggstam
71cd403ceb scr/consensus: BlockOrderStore created, validatord: retrieve last block info from sled (removed redudant ConsensusState attributes), added subnets configs, simulation script modified, nodes-tool: removed redudant info 2022-04-19 16:27:53 +03: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
mohab
5686a6b093 [crypsinous/doc/architecture/blockchain] added scalar linear leader slection function 2022-04-19 06:06:24 +02:00
aggstam
4ed5fb001b Revert "src/consensus: removed fixed genesis timestamp (if sled db doesn't exists it restarts from current timestamp)"
This reverts commit 425d339c43.
2022-04-17 16:50:58 +03:00
aggstam
425d339c43 src/consensus: removed fixed genesis timestamp (if sled db doesn't exists it restarts from current timestamp) 2022-04-17 15:10:08 +03:00
narodnik
d1d4859169 send/recv log per channel for json-rpc debugging 2022-04-16 11:56:25 +02:00
aggstam
a9b5777861 src/consensu: block metadata modifications, proper hash handling, misc cleanups 2022-04-15 20:58:32 +03:00
lunar-mining
a21578088f dnetview: update README 2022-04-15 11:30:58 +02:00
aggstam
d7bceafba5 src/consensus: misc vote validations 2022-04-14 16:40:09 +03:00
aggstam
7a34ec3d45 src/consensus: split state, fully sled integration, modified nodes-tool to extract all sled db data 2022-04-14 13:19:11 +03: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
parazyd
54def23988 book: Add DarkFi Node Architecture (DNA) 2022-04-13 11:35:49 +02:00
ghassmo
b9738db087 src/net: keep importing dependencies in order 2022-04-13 08:08:01 +04:00
ghassmo
705f88fde4 bin/tau: remove dataset path from MonthTask and Taskinfo structs 2022-04-13 07:54:45 +04:00
ghassmo
07c8e12120 src/raft: catch errors cause the algorithm to crash 2022-04-13 07:53:47 +04:00
ghassmo
1424949a69 src/net: little fix 2022-04-13 07:52:43 +04:00
ghassmo
7a883a3987 add net feature to rpc module 2022-04-12 17:04:26 +04:00
ghassmo
75a1321372 src/raft: using get() instead of indexing into hashmap and vector to avoid panic! 2022-04-12 17:04:26 +04:00
ghassmo
bd4695f7ca src/error: add raft error type 2022-04-12 17:04:26 +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
3a12cc2674 src/raft: fix bugs & add logs messages 2022-04-12 15:38:45 +04:00
ghassmo
308fa4d0da bin/tau: clean up 2022-04-12 15:38:04 +04:00
ghassmo
d23c005664 example/p2pdebug: minor changes 2022-04-12 15:35:49 +04:00
ghassmo
394daad1f7 make example/p2pdebug crate for debugging/testing the p2p network code 2022-04-12 10:59:34 +04:00
ghassmo
2192f70b8d src/net: fix a bug causing intensive CPU usage 2022-04-12 09:16:47 +04:00
parazyd
a3ed95ab79 rpc: WIP network transports, and darkfid skeleton for further integration. 2022-04-11 18:44:46 +02:00
aggstam
ab7eb937ad WIP:script/research/nodes-tool: dummy tool to extract validatord state from sled to a json like file 2022-04-11 15:38:13 +03:00