Commit Graph

3209 Commits

Author SHA1 Message Date
parazyd
21dd80ae99 rpc: Replace serde_json with tinyjson. 2023-08-20 18:53:52 +02:00
parazyd
332b65cc74 rpc/clock_sync: Remove peer_request method.
This should not be done over JSON-RPC but rather in p2p.
2023-08-20 18:53:52 +02:00
parazyd
50ac8bf93c net: Remove most of dnet and replace with a ChannelInfo subscriber.
We want to make dnet event-based and not a polling thing, and we also
want to remove the JSON dependency directly in the p2p library. Such
format conversions should happen out of the library, likely in the
daemon providing debugging info.
2023-08-20 18:53:52 +02:00
parazyd
cf002a03b0 system/subscriber: Change SubscriptionId type to usize. 2023-08-20 18:53:52 +02:00
x
d8c9f893a1 Revert "net: these lines aren't needed. The enable/disable guard is simply for channel message logging. The other info is still accessible and adds no costs."
This reverts commit 977f3027ff.
2023-08-20 13:50:43 +02:00
x
977f3027ff net: these lines aren't needed. The enable/disable guard is simply for channel message logging. The other info is still accessible and adds no costs. 2023-08-20 13:44:44 +02:00
x
1b35330082 zkrunner/pydrk: add --trace argument to zkrunner, and appropriate changes to the py bindings. 2023-08-20 09:47:05 +02:00
x
37bd0ccdf4 zk tracer: add a bool pass through instead of using if let idiom. As a consequence we change weaker matches into stronger unwraps. 2023-08-19 13:13:26 +02:00
x
7962f8ff8e zk: add forgotten file in last commit tracer.rs 2023-08-19 12:54:13 +02:00
x
f3a6672bfb zk: add debug tracer 2023-08-19 12:51:34 +02:00
x
41197407bf replace .iter().map(|x| x.clone()).collect() with .clone()
tested with example/zk.rs and dao contract test.
2023-08-18 12:21:11 +02:00
parazyd
1237e5be24 tests: Implement JSON-RPC server/client test. 2023-08-18 11:40:09 +02:00
parazyd
44982d320e chore: Update crate dependencies 2023-08-18 10:15:14 +02:00
parazyd
cf330b872c rpc/client: Reintroduce subscribe().
Added a FIXME note about "Triggering next consume". This should not
be required. Instead we should just be waiting for notifications and
never have to send anything back.
2023-08-18 09:37:26 +02:00
parazyd
b57d0c1c9b net: Implement Unix socket transport (both dialer and listener) 2023-08-18 08:56:54 +02:00
parazyd
827ec53f63 rpc: Cleanup client and server and refactor into smaller functions.
* Implement a read timeout to avoid a DoS path
* Use dynamic buffer allocation with a max size limit
* Make the JSON-RPC a line-based protocol
2023-08-18 08:56:54 +02:00
parazyd
0ba9740b84 chore: Clippy lints 2023-08-17 12:03:11 +02:00
Dastan-glitch
93b7301528 event_graph: add remove_old_events() method
this method takes a timestamp as an argument and removes every event that is older than the timesamp from the tree
and relink the oldest event in the resulted tree to the root event
2023-08-17 05:30:27 +03:00
Dastan-glitch
0adf421d71 event_graph: rewrite find_ancestor() 2023-08-17 05:22:02 +03:00
parazyd
6a024ab801 zkas: Add a field definition on top of the circuit file.
Currently unused, but will probably be expanded to define proofs over
different fields.
2023-08-14 17:09:18 +02:00
parazyd
af01483bfb sdk/python: Remove unused to_json function. 2023-08-14 17:06:33 +02:00
parazyd
6f95bb156f zk/gadget: Make small_range_check field-agnostic. 2023-08-14 17:05:41 +02:00
parazyd
bda805e5ff sdk/python: Remove obsolete message in Makefile. 2023-08-13 19:59:43 +02:00
parazyd
3222188b46 sdk/python: Do not generate rustdoc. 2023-08-13 19:08:51 +02:00
parazyd
349807d8c8 sdk/python: Directly compile zkas source code as the ZkBinary constructor. 2023-08-13 16:24:58 +02:00
parazyd
7860678e6a zk: Export halo2::dev module. 2023-08-13 16:24:57 +02:00
parazyd
e421b08512 contract: Match only .rs files for make dependencies. 2023-08-13 16:24:57 +02:00
parazyd
988455f79b sdk/python: Perform full code cleanup and make everything work. 2023-08-13 16:24:57 +02:00
parazyd
27735bb6f4 net: Remove channels from P2P if broadcast fails. 2023-08-12 20:54:31 +02:00
parazyd
ffd7e5907b net: Fix minor log aesthetic. 2023-08-12 13:17:50 +02:00
parazyd
201173d15f net/inbound_session: Register stop_sub before registering channel on accept.
I think this led to a race condition, where a channel wouldn't clean up
on time. Possibly being triggerred by lilith's pings. Let's see if this
patch helps clean up any hanging channels.
2023-08-12 13:14:51 +02:00
parazyd
1eb00ef9c2 chore: Update crate dependencies 2023-08-12 13:01:32 +02:00
parazyd
9e789c24b5 net: Attempt reseeding the P2P subsystem in peer_discovery if no channels are connected. 2023-08-12 12:56:45 +02:00
parazyd
814c701677 net/outbound: Add a TODO note on reseeding peers. 2023-08-11 13:26:29 +02:00
parazyd
246b73d189 event_graph: Clippy lint 2023-08-11 13:26:29 +02:00
aggstam
ff581982be validator/consensus: finalization check added 2023-08-10 19:58:17 +03:00
aggstam
80ffd5afd6 validator/consensus: proposal generation implemented 2023-08-10 19:32:06 +03:00
parazyd
78c4180c90 net: Improve log message. 2023-08-10 17:23:57 +02:00
aggstam
a2fb71e8cc darkfid2: various json-rpc subscribers added 2023-08-08 19:00:49 +03:00
aggstam
d3aa5ba643 rpc/jsonrpc: simplyfied subscibers usage 2023-08-08 19:00:49 +03:00
Dastan-glitch
f1e01243e8 event_graph: minor correction of a comment 2023-08-05 05:45:08 +03:00
aggstam
67d5ed7d28 validator: current slot generation added 2023-08-04 18:42:05 +03:00
aggstam
bfa6a9e3c5 the numbers mason what do they mean 2023-08-03 22:15:36 +03:00
aggstam
490436b11e validator: check that eta is carried as slots progress 2023-08-03 19:11:18 +03:00
aggstam
df5f2a7568 blockchain/Slot: renamed previous.eta to last_eta 2023-08-03 18:13:01 +03:00
parazyd
bea7596209 Revert "Embed git revision in CLI version output."
This reverts commit 459170ff09.
2023-08-03 11:52:16 +02:00
Dastan-glitch
f3b8087856 event_graph: fix failing commented tests 2023-08-03 02:15:42 +03:00
Dastan-glitch
399f63acb9 event_graph: fix prune_chains() and diff_depth() 2023-08-03 02:14:01 +03:00
aggstam
2cb64488ed noob detected 2023-08-02 18:40:50 +03:00
aggstam
e71264d376 darkfid2: moved p2p protos from validator to darkfid using wrapper structs for messages 2023-08-02 18:37:43 +03:00