Commit Graph

3009 Commits

Author SHA1 Message Date
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
parazyd
f42e935700 lib: Move wallet module out of the node module. 2022-04-23 21:21:09 +02:00
ghassmo
6423e0c377 raft: fix major bugs 2022-04-23 16:58:01 +03:00
ghassmo
3986a98561 bin/tau: add more debug messgaes 2022-04-23 16:57:35 +03:00
ghassmo
ed152c8cb5 raft: flush sled datastore once receive exit signal 2022-04-23 15:19:15 +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
mohab
25a8f68abd [doc/architecture/blockchain] added some proofs, and pruned a bit 2022-04-23 05:18:49 +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
ghassmo
b23517c8fa net: organize the modules structures 2022-04-23 02:23:22 +03:00
narodnik
29a9182010 simple zk contract example 2022-04-22 11:34:56 +02:00
aggstam
89606ee02a consensus/state.rs: fixed participants insertion 2022-04-22 12:03:07 +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
narodnik
bc0f0e381f add random channel id for debugging info 2022-04-22 08:02:47 +02:00
lunar-mining
8cb72ba81d Merge branch 'master' of github.com:darkrenaissance/darkfi 2022-04-22 08:03:54 +02:00
lunar-mining
fd588ef16c dnetview/ parse: return SessionInfo from parsing functions + cleanup 2022-04-22 08:03:04 +02:00
aggstam
a4c1e3b6de validatod: misc fixes and cleanups 2022-04-22 01:49:23 +03:00
mohab
088ada9ff7 [doc/architecture/blockchain] added inverse lead selection function 2022-04-21 21:48:44 +02:00
mohab
476a201d72 [doc/architecture/blockchain] fixed indepdendent aggregation lead selection 2022-04-21 21:48:44 +02:00
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