Commit Graph

113 Commits

Author SHA1 Message Date
narodnik
2c0d8c9a8d Fixed 3 bugs:
1. Skip writing or reading anything from the socket when payload size is 0
2. Ping/Pong write their payload in pack()
3. Race conditions caused by having protocol subscriptions inside spawned tasks. Instead these have now been moved to class constructors. This enables messages to be queued for that protocol subsystem while it is setting up itself. Once it is ready the messages can be read and processed. See the changes for files protocols/protocol_address.rs and protocols/protocol_version.rs
2021-02-01 18:32:00 +01:00
narodnik
fb00f7056c add outbound_session and detailed logging info 2021-01-31 18:06:16 +01:00
narodnik
82e8a3c515 stop channel once seed process is done and disconnect. 2021-01-29 16:45:09 +01:00
narodnik
9294e2a0ec Functional seed synchronization step 2021-01-28 10:12:28 +01:00
narodnik
961d586cef add protocol_address which does addr/get_addr hosts sync 2021-01-25 17:49:05 +01:00
narodnik
2dca8127fb cargo fmt and fix 2021-01-25 17:13:47 +01:00
narodnik
bd2353620e Start to better define the protocol subsystem through ProtocolJobsManager 2021-01-25 17:02:45 +01:00
narodnik
295bfed30f create specialized network error that is copyable and easily sent between threads. 2021-01-22 16:16:30 +01:00
narodnik
235099e440 Acceptor class for inbound connections 2021-01-19 17:04:57 +01:00
narodnik
466abc1dfa InboundSession stub which accepts new connections 2021-01-19 11:29:44 +01:00
narodnik
c127266556 nuke old networking subsystem 2021-01-19 11:21:49 +01:00
narodnik
9d216c9f40 networking subsystem initial commit (still not working) 2021-01-18 12:27:23 +01:00
narodnik
44b5f3088f cleanup rpc code 2020-12-28 18:30:05 +01:00
narodnik
a63acc38c2 configurable log path 2020-12-28 17:50:51 +01:00
narodnik
48e45d2c28 json rpc quit 2020-12-28 17:05:12 +01:00
narodnik
5ddcdbc69e working json rpc module 2020-12-27 18:01:07 +01:00
narodnik
6df824ffb6 migrate other protocols (server and seed) to Arc<Self> 2020-12-20 21:00:40 +01:00
narodnik
a5791f6f07 cargo fmt 2020-12-20 18:33:37 +01:00
narodnik
3af393cf78 migrate client_protocol to Arc<Self> model. 2020-12-20 17:58:33 +01:00
narodnik
939bc52072 removed obsolete targets in cargo.toml and ran cargo fmt 2020-12-20 15:17:48 +01:00
narodnik
747198b32d added working p2p network 2020-12-20 15:14:21 +01:00
rachel-rose
59177163cb commented out jubjub specific check 2020-10-24 11:44:16 +02:00
rachel-rose
8aab25d30b added .zts file to contract.setup() call 2020-10-22 22:42:13 +02:00
rachel-rose
852820ae68 added zts file to contract.setup() call 2020-10-22 22:39:58 +02:00
rachel-rose
9ae1f20d75 commented out Ok() from unimplemented functions 2020-10-21 20:10:17 +02:00
rachel-rose
079e876d0d added _ prefix to unused variables in unimplemented functions 2020-10-21 20:03:32 +02:00
rachel-rose
69d8bee5ab removed mut from const variables 2020-10-21 19:43:36 +02:00
rachel-rose
e6caf8fc53 removed unused gadget imports 2020-10-21 18:02:57 +02:00
rachel-rose
9a8f59f85f added return ? 2020-10-21 17:59:19 +02:00
rachel-rose
92220db262 changed println! to eprintln! for unreadable contract 2020-10-21 17:52:45 +02:00
rachel-rose
42af3c6cef removed unused import crate::vm::ZKVMCircuit 2020-10-20 21:47:44 +02:00
rachel-rose
60e49c2754 removed unused imports std::ops Add, Neg 2020-10-20 21:45:14 +02:00
rachel-rose
13a7264649 rm file zkvm.rs 2020-10-20 20:48:51 +02:00
rachel-rose
b502f5802a fixed param bug 2020-10-20 16:23:51 +02:00
rachel-rose
96034a0b89 changed verify asset to if/else check 2020-10-20 14:21:35 +02:00
rachel-rose
2bc5862d04 removed hardcoding, reads from command line args 2020-10-20 14:08:26 +02:00
rachel-rose
3d904dcebf moved to /bin 2020-10-20 13:49:53 +02:00
rachel-rose
39672e1bed command line tool 2020-10-19 21:43:22 +02:00
narodnik
9062c409c1 jubjub save and load proof 2020-10-17 19:28:40 +02:00
narodnik
1099a62eb4 add save and load trusted setup stuff 2020-10-17 17:51:52 +02:00
narodnik
f29282a357 switch proof generation from jinja to lisp/racket 2020-10-17 16:08:50 +02:00
narodnik
15dffe950d rename lcX_add_one_coeff to lcX_add_constant, and add mimc example 2020-10-12 22:27:12 +02:00
narodnik
3c2d281cd0 move all old files in src to old/ 2020-10-11 14:43:48 +02:00
narodnik
67d906c72e begin moving old files in src 2020-10-11 14:41:45 +02:00
narodnik
918992b57a remove unused headers in jj.rs 2020-10-11 14:39:41 +02:00
narodnik
b46dfcd322 rename supervisor to simply contract 2020-10-11 14:38:28 +02:00
narodnik
12df113e35 clean up a bit 2020-10-11 14:36:22 +02:00
narodnik
b317ad6fdc comments for jj.rs 2020-10-11 14:35:04 +02:00
narodnik
c3cfc3e4dc finished migration to new API for mint as well 2020-10-11 14:32:39 +02:00
narodnik
2f4983f97a migrate to new API 2020-10-11 14:28:28 +02:00