Grégoire Henry
987d3a9c6a
P2p: use --private-mode
for sandboxed nodes
2019-02-20 18:57:51 +01:00
Grégoire Henry
e3f9ae4578
P2p: (re)add local peer discovery
2019-02-20 18:25:13 +01:00
OCamlPro-Iguernlala
cc848fc479
P2p: export 'P2p_pool.private_node'
...
'private_node conn' returns 'true' if the node associated with
the given connection is in private mode
2019-02-20 16:47:17 +01:00
OCamlPro-Iguernlala
a70ae26706
P2p: export function 'P2p_pool.score'
2019-02-20 16:47:16 +01:00
OCamlPro-Iguernlala
3a3d0848ad
P2p: randomly allow one additional incoming connection
...
If 'max_connections' is already reached, this modification will
enable one additional incoming connection if 'Random.bool()' is
true. This will allow a kind of connections diversification by
enabling a call to P2p_maintenance.too_many_connections, which
will close some connection with a low score (depending on the
chosen scoring criterion)
2019-02-20 16:47:16 +01:00
OCamlPro-Iguernlala
3a4d523e09
P2p: improve logging level in P2p_maintenance
2019-02-20 16:47:04 +01:00
Grégoire Henry
5f378c8ba0
P2p: algorithmic optimisation in P2p_pool
.
2019-02-19 21:43:53 +01:00
Grégoire Henry
15b61d6b84
P2p: fix race condition in node initialisation
2019-02-19 21:43:53 +01:00
Grégoire Henry
1853889637
P2p: improve P2p_socket
...
There is no notion of unauthenticated connection, since the function
`authenticate` is immediately called on a
`P2p_io_scheduler.connection` and returns an authenticated connection,
or nothing. So, we only deal with authenticated connections. The
identifier of a connection is the same one as the one of the
`P2p_io_scheduler.connection` underneath.
2019-02-19 21:43:52 +01:00
Grégoire Henry
2716cbc1f1
P2p: introduce P2p_fd
2019-02-19 21:43:52 +01:00
Grégoire Henry
c574d91928
Deps: be compatible with ipaddr.3.0.0
2019-01-22 17:16:50 +01:00
Grégoire Henry
dbf4736e6b
Opam: update package description to opam.2.0
...
Co-authored-by: Pietro Abate <pietro.abate@nomadic-labs.com>
Co-authored-by: Gregoire Henry <gregoire.henry@tezos.com>
2019-01-21 17:54:19 +01:00
Grégoire Henry
de171a63f0
OPAM: strict version constraints on dune are not required anymore
2019-01-21 17:54:18 +01:00
Jun FURUSE
b843dbcb7b
Typo fixes
2018-12-01 06:57:40 +00:00
Vincent Botbol
14b1ba2adc
Stdlib/Ring: fix ring's semantics
2018-10-26 15:56:36 +02:00
Mathias Bourgoin
1272b11ea2
Shell: first batch of statistics in the DistributedDB
...
Co-authored-by: Pietro Abate <pietro.abate@tezcore.com>
Co-authored-by: Mathias Bourgoin <mathias.bourgoin@tezcore.com>
2018-10-24 11:48:12 +02:00
Vincent Botbol
b6bb16caf1
Admin/P2P: remove forget peer/address RPC, introduce untrust & unban peer/address.
2018-10-17 15:06:35 +02:00
Vincent Botbol
f4a368f81e
RPC: replace return ()
with return_unit
2018-10-17 15:06:35 +02:00
Vincent Botbol
57fa653c5e
Admin/P2P: register forget and kick RPC
2018-10-17 15:06:34 +02:00
Grégoire Henry
8e8fae23fd
P2p: fix for file-descriptor leak on incoming connections
2018-08-28 17:25:58 +00:00
Vincent Bernardoff
17ff89186e
Logging: refactoring/code deduplication
2018-08-28 16:09:00 +02:00
Pierre Boutillier
b5fc7f582e
Update license in opam files
2018-08-22 14:50:13 +02:00
Pietro Abate
70afae4a81
P2p: /network/identity -> /network/self
2018-08-20 11:17:18 +02:00
bruno
9d1bf10b94
P2p: add network/identity
RPC
2018-08-20 11:17:17 +02:00
Grégoire Henry
87e0de9826
Dune: use the new syntax
2018-08-01 10:52:24 +02:00
Grégoire Henry
5362b321d9
Dune: rename s/jbuild/dune/
2018-08-01 10:32:12 +02:00
Pietro
b89682e441
Build: Jbuilder -> Dune 1.0.1
2018-07-24 19:15:04 +02:00
Grégoire Henry
c0d42c8f46
P2p: do not drop currently connected peers
2018-07-18 17:48:39 +02:00
Vincent Bernardoff
41f6757ef8
Everywhere: exception Not_found -> _opt
2018-07-13 01:31:04 +02:00
Benjamin Canou
edc1a6512f
CI: fix p2p opam tests
2018-07-06 19:11:50 +02:00
Benjamin Canou
8aec39d8bb
CI: use IPv4 in p2p tests
2018-07-06 18:05:10 +02:00
Pierre Boutillier
140bd6b1ca
Tezos is now Open Source
2018-06-30 17:41:32 +02:00
Vincent Bernardoff
2830ca3232
P2p: P2p_pool.Peers.ban
now also kick target
2018-06-29 15:27:26 +00:00
Raphaël Proust
1c2a771832
Everywhere: return_{none,some,nil,true,false}
2018-06-27 10:57:21 +02:00
Raphaël Proust
103d5355f2
Everywhere: return_unit
2018-06-27 10:57:21 +02:00
Chris Martin
2f4c002acf
Fix "bootstrapping" typos
2018-06-25 15:15:19 +02:00
Pierre Chambart
ce926e575a
Teamwork: Prevent leaks with never_ending
...
Lwt_utils.never_ending is a global variable, hence a GC root. A promise
created by binding it cannot ever be garbage collected. This fixes the
known leak in the baker an endorser by allocating a fresh one for each
use (by turning it into a function). This porbably fix other slower
leaks.
High five Klakplok and Vincent.
2018-06-19 03:06:21 +02:00
Grégoire Henry
5fd5c1c5f7
Dune: upgrade to 1.0+beta20
2018-06-08 15:27:23 +00:00
Grégoire Henry
030630ec0f
Data_encoding: mandatory title
to case
2018-06-06 10:54:33 +02:00
Grégoire Henry
c175cd1c65
Shell/RPC: use query parameters for /p2p
2018-06-06 10:54:33 +02:00
Grégoire Henry
95a56753df
P2p: store connection_local_metadata
in P2p_connection.Info.t
2018-06-05 13:51:25 +02:00
Grégoire Henry
e610fcaade
P2p: read connection metadata before to accept connections
...
This will allow to decide whether to accept a connection or not
depending on its actual metadata.
2018-06-05 13:51:20 +02:00
Grégoire Henry
26c08672dd
P2p: slighty less verbose debug
2018-06-05 13:51:12 +02:00
OCamlPro-Iguernlala
5456824960
P2p: do not propose private nodes for peers swap
2018-06-05 13:51:11 +02:00
OCamlPro-Iguernlala
d08cd57c69
P2p: do not broadcast private peers
2018-06-05 13:48:29 +02:00
OCamlPro-Iguernlala
6b287ba98e
P2p: do not request new peers from known private peers
2018-06-05 13:41:33 +02:00
OCamlPro-Iguernlala
bcb56331b5
P2p: tag known peers as private until the first connection
...
This information will be needed to be able to know if a
point is/was eventually private.
2018-06-05 13:40:12 +02:00
OCamlPro-Iguernlala
4a16b3ef0b
P2p: add "private node" information in Connection_metadata.
...
Add private_node flag in Connection_metadata.t and update Node,
Distributed_db, P2p and P2p_pool to propagate the information
2018-06-05 13:40:00 +02:00
OCamlPro-Iguernlala
65758d08ac
P2p: add a warning in case of an incoming connection from an untrusted peer
2018-06-05 13:39:50 +02:00
OCamlPro-Iguernlala
6bbdf13bc5
P2p: do not send bootstrap message to peers in private mode
2018-06-05 13:39:43 +02:00