Commit Graph

6578 Commits

Author SHA1 Message Date
Dastan-glitch
fc8740fe91 bin/darkirc: implement removing events older than one week, and save/load tree state 2023-08-21 05:05:17 +03:00
parazyd
4060ad6821 tau: WIP RPC update. 2023-08-20 18:53:52 +02:00
parazyd
a80a62ddf7 darkirc: Update to new RPC dependencies. 2023-08-20 18:53:52 +02:00
parazyd
f85d0d6c46 darkfid2: Update to new RPC dependencies. 2023-08-20 18:53:52 +02:00
parazyd
db607de661 darkfid: Update to new RPC dependencies. 2023-08-20 18:53:52 +02:00
parazyd
26aeb0829e faucetd: Update to new RPC dependencies. 2023-08-20 18:53:52 +02:00
parazyd
b473599b9b genev: Update to new RPC dependencies. 2023-08-20 18:53:52 +02:00
parazyd
3703c9abd6 fud: Update to new RPC dependencies. 2023-08-20 18:53:52 +02:00
parazyd
52f3b09769 lilith: Update to new RPC dependencies. 2023-08-20 18:53:52 +02:00
parazyd
21dd80ae99 rpc: Replace serde_json with tinyjson. 2023-08-20 18:53:52 +02:00
parazyd
56eda79c1b example: Remove rpc client/server.
They're essentially provided in tests/
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
d4cf61f8fa script: add a nodetool. Since p2p is likely to change, just leave this code here since it has jsonrpc snippet in python we can use later. 2023-08-20 14:00:50 +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
80c42ea3dc doc: rename contributing to contribute 2023-08-20 09:52:55 +02:00
x
884dbd7185 doc: remove section in contribute about a debugger 2023-08-20 09:52:14 +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
ertosns
6e6bf0ba33 [research/lotterysim] fix update vesting, and negative apr 2023-08-19 18:37:40 +03: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
ertosns
d60d72d088 [research/lotterysim] update vesting darkie id 2023-08-19 13:19:26 +03:00
ertosns
3aaf7e466c [research/lotterysim] handle 0 premint divin by zero case] 2023-08-19 12:55:44 +03:00
ertosns
9dc54e6e3f [research/lotterysim] turn off staking strategies during headstart period 2023-08-19 12:50:27 +03: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
9103045723 example/rpc: Add unix listeners. 2023-08-18 10:07:37 +02:00
parazyd
52599c947b bin: Fix compilation for RpcClient dependents. 2023-08-18 10:04:32 +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
aggstam
428696d846 doc/ircd: future headache prevention 2023-08-17 16:50:19 +03:00
parazyd
0ba9740b84 chore: Clippy lints 2023-08-17 12:03:11 +02:00
Dastan-glitch
c29594d856 bin/tau: minor fix log msg 2023-08-17 05:54:27 +03:00
Dastan-glitch
b0b5d41493 book: fix event_action link 2023-08-17 05:52:28 +03: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
02590af115 research/pvss: Finish SCRAPE impl. 2023-08-16 11:29:24 +02:00
parazyd
a9ca678b8b research/pvss: WIP SCRAPE Sage implementation 2023-08-16 09:53:52 +02:00
parazyd
2d8733f269 research/pvss: Add separate script for DLEQ explainer. 2023-08-16 09:38:52 +02:00
x
541858e021 zk: add forgotten z public output values 2023-08-16 09:10:37 +02:00
x
62a2d0bc50 zk: simplified nova proof 2023-08-16 09:00:09 +02:00
x
edc788d155 nova IVC impl 2023-08-15 17:27:06 +02: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