narodnik
5934940f36
Improve code and add comments
2021-03-06 18:06:16 +01:00
narodnik
b12d38bdc7
tidy up the code
2021-03-06 11:58:42 +01:00
narodnik
5555f4f4a0
remove old send code and message type
2021-03-06 11:30:49 +01:00
narodnik
70ef7b6175
fixed broken dispatch bug (command names for send were Version instead of version)
2021-03-06 10:40:00 +01:00
narodnik
4e5b844ba9
integrate new message subsystem
2021-03-06 09:28:50 +01:00
narodnik
1431e17a2d
trigger and propagate errors
2021-03-06 07:54:02 +01:00
narodnik
bac61ea6ad
cargo fmt
2021-03-06 07:39:16 +01:00
narodnik
a690df7d46
use downcast Arc trick to simplify code
2021-03-06 07:38:44 +01:00
narodnik
be1eac9a57
new message substem, still not yet integrated with main networking code
2021-03-05 15:44:34 +01:00
narodnik
5695de003c
timeout for querying seeds
2021-03-01 11:15:56 +01:00
narodnik
7ebc91cead
use a pending lock to prevent duplicate connections during setup phase
2021-02-24 17:35:38 +01:00
narodnik
ee82ed9f70
nicer avoid connections to self loop in outbound_session
2021-02-24 17:10:53 +01:00
narodnik
1eaf781128
cargo fmt
2021-02-23 15:27:14 +01:00
narodnik
7996ed0e24
do not connect to self
2021-02-23 15:18:51 +01:00
narodnik
d867564a77
more precise debugging information for networking submodule
2021-02-23 14:42:52 +01:00
ada
6abf0023f8
merge
2021-02-02 11:24:59 +01:00
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
ada
8f37dc8aa5
added zkcircuit to start setup process
2020-12-15 21:00:43 +01:00
ada
3e2c62c0bf
cleaning code
2020-11-24 02:51:35 +01:00
ada
5fe67b5db6
cleaning code
2020-11-24 02:47:23 +01:00
ada
97c99c75ea
added zn* function definition
2020-10-28 01:26:55 +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