Commit Graph

6589 Commits

Author SHA1 Message Date
parazyd
2eea9daffd taud: Finish new RPC port. 2023-08-21 14:44:39 +02:00
parazyd
805d465410 nodetool: Fix behaviour. 2023-08-21 12:01:19 +02:00
parazyd
27466c37e3 darkirc: Minor cleanup regarding dnet. 2023-08-21 12:01:19 +02:00
parazyd
5e839ac237 nodetool: Add license header. 2023-08-21 12:01:19 +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
Dastan-glitch
911262053c bin/darkirc: update tmux test script 2023-08-21 05:09:21 +03:00
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