Dastan-glitch
44602ff596
event_graph: added some info about methods
2023-08-25 02:58:43 +03:00
y
f6d1915556
zkas: fix index out of bounds panic
...
The decode() function panics when the input length is less than 10 bytes
in size due to direct magic-number indexing on the vector elements. This
check returns an error when the input is too small.
2023-08-24 18:38:03 +00:00
parazyd
2291a2bc90
lib: Minor clippy lints.
2023-08-24 15:33:41 +02:00
parazyd
2d0e3b0d89
lib: Clean up imports
2023-08-24 15:29:16 +02:00
parazyd
98703d361a
lib: Add necessary traits around for async serial.
2023-08-24 14:27:03 +02:00
parazyd
75cb654068
serial: Introduce full async serialization support.
...
Unfortunately this duplicates the code, but it is beneficial for perf.
2023-08-24 14:27:03 +02:00
parazyd
dfdb4c0d5e
darkfi-derive: Apply changes for internal Async{Encodable,Decodable} derive.
2023-08-24 14:27:03 +02:00
parazyd
e6fd1d5221
darkfi-derive-internal: Add support for Async{Encodable,Decodable} derive.
2023-08-24 14:27:02 +02:00
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
f5b34c56e6
contract/money: Enable forgotten test.
2023-08-23 19:50:14 +02:00
parazyd
cee481b0c3
chore: Update crate dependencies
2023-08-23 19:15:03 +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
x
3b4103e40b
net: change private p2p functions to pub(crate)
2023-08-23 10:45:59 +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
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
478bfa2a00
contract: 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
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
557dfd0bb5
system: Implement async timeout helpers.
...
This is copied from async-std, under the MIT license.
2023-08-22 15:04:47 +02: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
aggstam
fb0102a7e0
taud: use StoppableTask instead of detach()
2023-08-22 01:39:57 +03:00
aggstam
3f6b79908b
darkfid: use StoppableTask instead of detach()
2023-08-21 19:15:43 +03:00
aggstam
dbe413d8f0
darkfid2: use StoppableTask instead of detach()
2023-08-21 19:01:16 +03:00
parazyd
8fed5c49d3
consensus/validator: Disable subscriber notify functions.
...
The module is scheduled for deletion.
2023-08-21 14:47:44 +02:00
parazyd
2eea9daffd
taud: Finish new RPC port.
2023-08-21 14:44:39 +02:00
parazyd
017cf68480
net/p2p: Expose the dnet subscriber through a function.
2023-08-21 12:01:19 +02:00
parazyd
02b15fd1c9
net/channel: Make ChannelInfo ID a u32.
2023-08-21 12:01:19 +02:00
parazyd
ee6d1d7b92
rpc: Add a few From impls from net module.
2023-08-21 12:01:18 +02:00
parazyd
d3f3ac8737
rpc: Have JSON notifications take JsonValue as params.
...
This outsources encoding/serialization to the caller.
2023-08-21 11:41:39 +02:00
parazyd
ebb4cab0ea
chore: Add missing license headers.
2023-08-21 10:35:00 +02:00
x
e23fb30604
p2p: debug net info cleanup and add support to darkirc
2023-08-21 10:20:37 +02:00
parazyd
21dd80ae99
rpc: Replace serde_json with tinyjson.
2023-08-20 18:53:52 +02:00