Commit Graph

1565 Commits

Author SHA1 Message Date
ghassmo
b23517c8fa net: organize the modules structures 2022-04-23 02:23:22 +03:00
aggstam
89606ee02a consensus/state.rs: fixed participants insertion 2022-04-22 12:03:07 +03: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
aggstam
a4c1e3b6de validatod: misc fixes and cleanups 2022-04-22 01:49:23 +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
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
aggstam
c217030367 validatord: sync tasks and protocols implemented 2022-04-21 04:43:37 +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
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
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
ghassmo
b9738db087 src/net: keep importing dependencies in order 2022-04-13 08:08:01 +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
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
ghassmo
3a12cc2674 src/raft: fix bugs & add logs messages 2022-04-12 15:38:45 +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
56186fc49e src/consensus: fork chains to use BlockProposal strusture, cleanup, encode_payload! macro added 2022-04-11 15:38:13 +03:00
parazyd
a3fe1de486 crypto: Derive PartialOrd and Ord for MerkleNode. 2022-04-11 11:13:23 +02:00
ghassmo
6b32ae6db1 little clean up using cargo clippy 2022-04-11 09:57:30 +04:00
ghassmo
f674650891 src/util: convert UrlConfig to SocketAddr 2022-04-11 09:26:22 +04:00
ghassmo
d0778e890f error: implement InfallibleError 2022-04-11 09:24:43 +04:00
narodnik
ae6d27001c Merge branch 'pil' 2022-04-10 05:27:41 +02:00
piltom
891484d196 net/transport improve tor docs 2022-04-10 00:42:51 +02:00
piltom
cca7fcc18c net/transport remove error not used 2022-04-09 23:28:12 +02:00
piltom
7cbf0bd95b net/transport remove unnecessary pub 2022-04-09 23:24:01 +02:00
piltom
4dbd513418 net/transport add tor transport 2022-04-09 20:16:23 +02:00
aggstam
d8f5adf23e CL checks conflicts resolved 2022-04-09 14:51:50 +03:00
aggstam
8ea28e752f src/consensus: blake3 hashes used insted of String, removed serde Deserialize/Serialize (finally) 2022-04-09 14:40:32 +03:00
ghassmo
277e908865 raft: prevent a listener node from request/response votes 2022-04-09 09:12:56 +04:00
ghassmo
b54211347e raft: handle errors properly 2022-04-07 12:57:34 +04:00
ghassmo
6a5cc6dbe1 add raft as a feature to darkfi lib 2022-04-07 11:50:18 +04:00
aggstam
267e1d2016 validatord: state storage moved from jsonfile to sled 2022-04-05 22:23:00 +03:00
parazyd
67dbb6825f CI: Fix test units. 2022-04-03 20:11:30 +02:00
parazyd
3018751d40 blockchain: Implement wrapper Blockchain struct to take the stores. 2022-04-03 16:16:35 +02:00
parazyd
8864a4c564 blockstore: Implement get_range() to retrieve a range iterator. 2022-04-03 16:08:29 +02:00
parazyd
1439d921da blockstore: Use sled::Batch for insert(). 2022-04-03 15:55:06 +02:00
parazyd
4a4b40d7be blockchain: Implement initial blockstore API. 2022-04-03 15:24:56 +02:00
parazyd
0109aa0394 Add skeleton for sled blockchain store. 2022-04-03 14:44:40 +02:00
ghassmo
891add8c62 net: minor changes 2022-04-03 11:00:13 +04:00