Commit Graph

6658 Commits

Author SHA1 Message Date
x
a53e84f5ea hosts: make quarantine_limit a configurable setting 2023-08-24 12:19:17 +02:00
x
61c269f776 net/outbound_session: start() doesnt return Err so remove error handling and result 2023-08-24 11:42:19 +02:00
x
2db408de14 p2p: greatly simplify & delet kod. p2p doesnt need a StoppableTask - the sessions themselves create their own StoppableTasks when calling start() and yield immediately. 2023-08-24 11:36:31 +02:00
x
21df1a2f52 add assert_err macro 2023-08-24 11:16:26 +02:00
x
d4ba515f7d net: remove p2p.run(), now we simply call p2p.start() and p2p.stop() 2023-08-24 11:00:58 +02:00
x
a2ae02ad9f net: reorganize code of outbound session into individual separated slots 2023-08-24 09:37:04 +02:00
x
2e1bc56371 net: remove redundant check, the prev line does p2p.exists(host). All sessions should add to this list through Session::perform_handshake_protocols() 2023-08-24 08:32:50 +02:00
x
68d51f794a net/hosts: rename load_*/get_* to fetch_*. We are doing an async get, so fetch more accurately conveys meaning here 2023-08-24 08:23:51 +02:00
parazyd
fe215e632c fuzz: Add zkas Lexer fuzzer. 2023-08-23 23:54:33 +02:00
parazyd
576a20e057 zkas: Propagate io::Result instead of aborting on errors. 2023-08-23 23:42:57 +02:00
parazyd
00e4456787 fuzz: Serialize attempt 2023-08-23 22:21:42 +02:00
parazyd
3d867832ac doc: Stop building rustdoc for dependencies. 2023-08-23 20:12:09 +02:00
parazyd
f5b34c56e6 contract/money: Enable forgotten test. 2023-08-23 19:50:14 +02:00
parazyd
535bd2c870 CI: Update mdbook binaries 2023-08-23 19:17:46 +02:00
parazyd
cee481b0c3 chore: Update crate dependencies 2023-08-23 19:15:03 +02:00
parazyd
dbe31b80cc contrib: Fix compile_all_bins.sh 2023-08-23 18:56:47 +02:00
Dastan-glitch
e67e7b25e2 rpc: fix close connection cleanly 2023-08-23 17:53:13 +03:00
y
ed53f896af chore: fix typos in comments and logs 2023-08-23 09:12:40 +00:00
greptile
970698f4a9 consensus: add unit test for bounds on f (#192)
* consensus: add unit test for bounds on f

Added test f_is_bounded to src/validator/consensus/pid.rs

Test by running:
cargo test --release --all-features f_is_bounded

* fix CI error (cargo fmt)

---------

Co-authored-by: y <y>
2023-08-23 09:12:13 +00:00
parazyd
ba0728a392 zkas: Remove clap dependency. 2023-08-23 11:06:27 +02:00
x
7399f8c15e doc: p2p-net.md improve wording further 2023-08-23 11:05:17 +02:00
x
507e4e02a6 doc: p2p-net.md improve wording for 1.1 2023-08-23 11:03:07 +02:00
x
c445c0f8eb doc: p2p-net.md clarify protocol and specify it more 2023-08-23 10:54:22 +02:00
x
3b4103e40b net: change private p2p functions to pub(crate) 2023-08-23 10:45:59 +02:00
x
97176c4424 update Cargo.lock 2023-08-23 09:58:22 +02:00
x
f203b77281 Revert "bugfix: get_log_config(), the log level is set in TermLogger::new(), not in get_log_config() which simply controls the formatting."
This reverts commit 39db8099d9.
2023-08-23 09:41:58 +02:00
x
39db8099d9 bugfix: get_log_config(), the log level is set in TermLogger::new(), not in get_log_config() which simply controls the formatting. 2023-08-23 09:25:06 +02:00
x
dfcf89e4be doc: arch/p2p.md fix small typos 2023-08-23 08:30:59 +02:00
x
723adfd01d doc: add arch/p2p.md 2023-08-23 08:17:01 +02:00
parazyd
ae6a2b7707 contract: Fix test compilation. 2023-08-22 20:25:29 +02:00
parazyd
9b4418931f zkas: Remove itertools dependency. 2023-08-22 20:22:58 +02:00
parazyd
2b3859e194 util/parse: Delete unused truncate() function. 2023-08-22 19:59:51 +02:00
parazyd
9b969aaef3 Update Cargo.lock 2023-08-22 19:55:37 +02:00
parazyd
478bfa2a00 contract: Remove async-std dependencies. 2023-08-22 19:55:37 +02:00
parazyd
a5360368aa bin: Remove async-std dependencies. 2023-08-22 19:55:37 +02:00
parazyd
a02e3475f6 lib: Remove async-std dependency. 2023-08-22 19:55:37 +02:00
x
4c94fa251c add docstring for StoppableTask 2023-08-22 15:19:50 +02:00
Dastan-glitch
cdb0598ef2 default datastore path to be ~/.local/darkfi/ for darkirc and tau 2023-08-22 16:18:54 +03:00
parazyd
3b0e9ecb59 bin: Apply changes for the P2P API modification. 2023-08-22 15:07:49 +02:00
parazyd
0f125fa2db net: Remove async-std dependency and prefer smol.
Also we now take the global executor and keep it around in P2p.
2023-08-22 15:07:48 +02:00
parazyd
15203f1615 Temporarily disable dchat and dnetview from the workspace. 2023-08-22 15:04:47 +02:00
parazyd
49d0d2a460 Temporarily disable building the drk crate. 2023-08-22 15:04:47 +02:00
parazyd
557dfd0bb5 system: Implement async timeout helpers.
This is copied from async-std, under the MIT license.
2023-08-22 15:04:47 +02:00
y
7883cbf8e1 fix typo 2023-08-22 13:00:11 +00:00
y
818df1a139 darkirc --> ircd, to be consistent 2023-08-22 13:00:11 +00:00
y
f3aa943c37 book: clarify network privacy for irc 2023-08-22 13:00:11 +00:00
x
25b84e18f6 net: make dnet! macro more compact (and rename to dnetev!) 2023-08-22 14:56:34 +02:00
x
ebe6f4e5c4 net/dnet: add outbound connected/disconnected events 2023-08-22 13:52:03 +02:00
parazyd
a0b73961fb system: Use a bounded channel for StoppableTask. 2023-08-22 09:49:13 +02:00
parazyd
f782c236a4 system: Fully port to smol runtime. 2023-08-22 09:38:22 +02:00