Commit Graph

2139 Commits

Author SHA1 Message Date
Grégoire Henry
c842ef6a2d
Opam: fix protocol packaging 2019-03-06 15:25:56 +01:00
Pierre Boutillier
7e4a70fac8
Remove peer from active_peers when Peer_validator.create has failed 2019-03-06 10:35:55 +01:00
Grégoire Henry
3e2172b2dd
Distributed_db: don't fail when receiving a notification for a closing worker 2019-03-06 10:35:55 +01:00
Grégoire Henry
a3379065ea
Distributed_db: fix concurency issue on Peer_validator creation 2019-03-06 10:35:54 +01:00
Benjamin Canou
eba7f5ac8c
Dune: fix dune.inc for added file in proto demo 2019-03-06 00:42:06 +01:00
Grégoire Henry
28f680ab91 Dune: remove src in proto_*/lib_protocol 2019-03-05 22:45:21 +00:00
Grégoire Henry
c3dd98dc0f Dune: do not use the infamous "OCaml syntax" anymore
In the process, we merged the two opam file and the functorized
version now properly reads `TEZOS_PROTOCOL`.
2019-03-05 22:45:21 +00:00
Grégoire Henry
b7c2546e5b
Daemon: await_bootstrapped_node now retries on Connection_failed
This allows the baker/endorser/accuser to wait a litlle bit for the
node to initialize itself and to open its RPC port.

By default, the deamon retries 6 times with a total waiting time
around 20 seconds, before to fail.
2019-03-05 17:33:02 +01:00
Marco Stronati
32a1d2647c
Opam: remove unused dependencies from alpha-{baker,endorser,accuser} 2019-02-28 13:05:19 +01:00
Grégoire Henry
9abcd0e55f
P2p: change configuration of P2p_maintenance
It feels more coherent not to configure `P2p_pool` with parameters
only for `P2p_maintenance`.
2019-02-28 13:45:11 +08:00
Sebastien Mondet
10c37f153d
Make 2-min sleep configurable (P2p_maintenance) 2019-02-28 13:45:05 +08:00
Grégoire Henry
35727d4ac3
Clic: stop being colorless.
Writing keyword in `white` was a bad idea for people using a
black-on-white terminal...

This patch replace `white` by the default color for keywords (it
preserves the underline). This does not change the color for
white-on-block terminal (where `white` is the default color), but fix
the issue for all terminals with a clear background
2019-02-28 13:44:46 +08:00
Lý Kim Quyên
e4a5d3c45c test for check point 2019-02-28 05:32:07 +00:00
Grégoire Henry
c80ab66397
Shell: improve termination
Kill the `DistributedDB` before anything else.
2019-02-26 12:11:09 +01:00
Grégoire Henry
359f2d6932
P2p: improve cancelation in maintenance 2019-02-26 12:11:08 +01:00
Grégoire Henry
07595c9e1f
P2p: improve cancelation
Pending connections were not easily interuptible.
2019-02-26 12:11:07 +01:00
Grégoire Henry
4adf696c65
P2p: improve logging level 2019-02-26 12:11:04 +01:00
Grégoire Henry
33a7ca51c3
Client: Use Host in HTTP requests
and add proper error message when the node refuses connection for
unallowed origin (CORS).
2019-02-26 12:00:37 +01:00
Sebastien Mondet
e9eac31e9a Add /monitor/commit_hash RPC 2019-02-25 17:05:23 -05:00
Grégoire Henry
b4e6018dd1 P2p: do not use ipv4 discovery in sandboxed scripts (closes 477)
This partially revert f51b8ad998.

We should way until a proper configuration-less discovery mechanism
based on ipv6_multicast is re-enabled before to use it by default in
the tests.
2019-02-25 15:18:06 +00:00
Sebastien Mondet
32348c092c
Fix use of ledger in main_signer 2019-02-25 15:44:18 +01:00
Sebastien Mondet
3690566b0b
Fix client display for “unspecified” chain-id 2019-02-25 15:44:18 +01:00
Sebastien Mondet
f2dd2c5776
Improve UX of ledger commands 2019-02-25 15:44:18 +01:00
Sebastien Mondet
da4a99ac27
Add support for test-chain-related APDUs 2019-02-25 15:44:18 +01:00
Grégoire Henry
4cbc5282b8
P2p: fix typo 2019-02-21 15:32:42 +01:00
Raphaël Proust
568057ed8f
P2p: minor style issues 2019-02-21 15:02:15 +01:00
Julien Tesson
9250e3891d
P2p: add P2p_point.Id.pp_list 2019-02-21 14:45:37 +01:00
Julien Tesson
0557c49c88
P2p: add P2p_connection.Pool_event.pp 2019-02-21 14:45:36 +01:00
Julien Tesson
48094c9989
Stdlib: add Option.pp 2019-02-21 14:45:35 +01:00
Julien Tesson
be5f985ec7
P2p: exporting Point.Id.equal 2019-02-21 14:45:33 +01:00
Raphaël Proust
f6f047ea15 Micheline: fix dependencies in opam/dune 2019-02-21 09:59:38 +00:00
Raphaël Proust
671b10a2d2 Micheline: small improvements to the tests 2019-02-21 02:38:19 +00:00
Vincent Botbol
12fd778172 Test/Micheline: clean-up & refactor of the test suite 2019-02-21 02:38:19 +00:00
Lý Kim Quyên
2d0c98b2da test michelson parser 2019-02-21 02:38:19 +00:00
Lý Kim Quyên
ad4e02c827 test michelson macros 2019-02-21 02:11:35 +00:00
Eugen Zalinescu
4aafeee6eb
Signer: added supports_deterministic_nonces 2019-02-20 23:08:22 +01:00
Eugen Zalinescu
d76c24670a
Signer: very simple test for deterministic nonce 2019-02-20 23:08:21 +01:00
Eugen Zalinescu
fd9694d8b0
Signer: added deterministic nonces 2019-02-20 23:08:19 +01:00
Grégoire Henry
987d3a9c6a
P2p: use --private-mode for sandboxed nodes 2019-02-20 18:57:51 +01:00
Grégoire Henry
d78505fff8
Opam: fix packaging of proto_demo 2019-02-20 18:35:24 +01:00
Grégoire Henry
e3f9ae4578
P2p: (re)add local peer discovery 2019-02-20 18:25:13 +01:00
Philippe Bidinger
f51b8ad998
Client: update proto_demo
The client registers three commands.
- demo tests an echo RPC,
- fail tests an always failing RPC,
- bake creates a new block with empty protocol content.
2019-02-20 17:28:56 +01:00
Grégoire Henry
91403aa69d
Shell: remove dead code 2019-02-20 17:28:56 +01:00
Vincent Bernardoff
f458b6119c
Lwt_utils: connect: add a ?timeout argument
This is to replace the default UNIX timeout that can be very long (30s
or so). In the context of baking, it is not acceptable to wait for
such a long time to connect to e.g. a signer daemon whenever there is
multiple addresses available for load balancing.
2019-02-20 17:13:41 +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
Vincent Bernardoff
78f22f4fdd
Alpha/Baker: add optional pidfile argument to daemons 2019-02-20 16:16:53 +01:00
Vincent Bernardoff
c66381a1c3
Signer: add an optional pidfile argument 2019-02-20 16:16:48 +01:00