Commit Graph

3930 Commits

Author SHA1 Message Date
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
Marco Stronati
356f4df169
Alpha: rename versions to alpha_{current,previous}
Remove initialization from protocol 002.
2019-02-20 12:39:21 +01:00
Marco Stronati
6194efa4e0
Scripts: remove old archive_protocol.sh 2019-02-20 12:39:21 +01:00
Marco Stronati
62abb52b9f
Scripts: add activate_protocol.sh 2019-02-20 12:39:21 +01:00
Marco Stronati
53fc7c9dfc
Scripts: add snapshot_alpha.sh 2019-02-20 12:39:21 +01:00
astefano
a21f671b0d
Alpha/Test: added voting tests for quorum
Co-authored-by: Eugen Zalinescu <eugen.zalinescu@nomadic-labs.com>
2019-02-20 12:39:20 +01:00
astefano
d478985bf8
Alpha/Test: fix tests failing when tokens_per_roll changes
This commit fixes the tests (except those from voting.ml) which failed when the value
of tokens_per_roll (from src/proto_alpha/lib_protocol/src/constants_repr.ml) changes.

Notably, 2 functions were deleted with get next baker by priority from double_baking.
They were used only in one test and they were creating pairs of baker and index,
but this index did not necessarily correspond to the baker's priority.
2019-02-20 12:39:20 +01:00
Marco Stronati
f193038e91
Shell: remove unused dependecies in opam file 2019-02-20 12:39:20 +01:00
Marco Stronati
1e6a8e1874
Crypto: add check on signature path lengths 2019-02-20 12:39:20 +01:00
Marco Stronati
fd4f435e2e
Crypto: add docstrings 2019-02-20 12:39:19 +01:00
Raphaël Proust
c7c8d64557
Error Monad: improve docstring to register_error_kind 2019-02-20 14:03:44 +08:00
Pietro Abate
3776e6853d
Error Monad: add docstring to register_error_kind 2019-02-20 13:57:20 +08: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
2e85409d25
Stdlib: better debug message in List.Bounded.insert 2019-02-19 21:43:51 +01:00
Grégoire Henry
14656a288b
Make: add make build-dev-deps 2019-02-19 17:37:54 +01:00
Grégoire Henry
fbd97da7b4
Opam: add upper constraint on cstruct 2019-02-19 17:37:54 +01:00
Grégoire Henry
9fdf0636c9
Opam: add upper constraint on dune
The "old" version of Lwt we use is incompatible with `dune >= 1.7`.
2019-02-19 17:37:52 +01:00
Victor Allombert
cf3390448a Lib_client_base: add branch option to wait for confirmation command 2019-02-19 12:56:11 +00:00
Raphaël Proust
d30894b2f9
Proto_alpha/forge: more consistent style 2019-02-19 13:19:56 +01:00
Raphaël Proust
e956c1f7bf
Proto_alpha/forge: simplify error management 2019-02-19 13:19:52 +01:00
Jeremy Bae
5ed2ac3f90
Add Vim swap files to .gitignore 2019-02-19 13:16:45 +01:00
Pietro Abate
7c59d32a4b Client: emit exit 1 when operation receipt is not found 2019-02-19 08:20:23 +00:00
Grégoire Henry
cb0b8f63b1 Shell: properly handle Unix_error while validating blocks 2019-02-15 19:49:47 +00:00
Sebastien Mondet
fd2c043a5d Return proper error message in ocp-resto/client 2019-02-14 11:22:52 -05:00
Marco Stronati
27c5bc86c0
Doc: add client voting commands 2019-02-11 15:24:16 +01:00
b
9026903850
Doc: update stack exchange status 2019-02-06 09:57:12 +01:00
Pierre Boutillier
136f16de14
Build-deps update imposed by uri.2.1.0 change in place 2019-02-01 21:38:46 +01:00
Xavier Clerc
d77331bbda v0.12-preview.120.21+190 2019-02-01 10:07:38 +00:00
Pietro Abate
c66623d0a7 Worker: register Closed error globally 2019-02-01 07:24:34 +00:00
Pietro Abate
e46b0746d5 Tests: improve test_multinode.sh 2019-02-01 07:12:39 +00:00
Philippe Wang
33adb497fb Update howtorun.rst 2019-02-01 05:48:48 +00:00
Philippe Wang
3c1601d9a0 Update tezos-init-sandboxed-client.sh 2019-02-01 05:36:37 +00:00
Philippe Wang
061ec54513 Update index.rst 2019-02-01 05:23:59 +00:00
MBourgoin
d6b8bd7887
Client: typo 2019-01-30 17:35:56 +01:00
MBourgoin
4e50c7a454
Proto_alpha/Endorser: add minimal documentation to client_baking_endorsement.mli 2019-01-30 12:16:23 +01:00
Dzmitryi Rudkouski
9c22170aef
CI: add versioned docker images 2019-01-30 12:10:15 +01:00
Pierre Boutillier
7bcd3892b7
Reify the git environment at compile time into the code
Use it to output a minimal `./tezos-node --version`

Works both when you compile inside a git repository or from an
archive generated by `git archive` (which is what gitlab does when
you click on "Download zip/tar.gz/tar.bz2" in the web interface)
2019-01-30 12:05:15 +01:00
Philippe Wang
a35f7a0de5 Update howtouse.rst: use comma instead of dot for thousand separators 2019-01-30 01:31:41 +00:00
Pierre Boutillier
677d2ae9d6 Synchronize (and fix) maximal size of lmdb dbs
Store can now be up to 40 Go large (was 4 To!)
Context can now be up to 400 Go large (was 40 Go)
2019-01-29 19:23:48 +00:00
Pierre Boutillier
98076324bf
Improve make build-deps after a tezos-opam-repository update
First this patch makes build-deps non interactive as it should be.
More importantly, it changes the optimization problem sent to the
opam solver (and that may be a big deal).

By default the criteria is `-removed,-changed,-notuptodate`.

-changed is problematic because it means that if a dependency
has been updated in tezos-opam-repository but all tezos packages
are fine with the one currently installed, it is not changed (but
as we observe now there might still be in fact packages with
undeclared incompatible with this old version)!

-remove is also problematic because what we would like to say is
"minimize the number of removed 'root' packages" we don't care to
remove packages automatically installed and not necessary anymore
(especially when they don't compile anymore with updated version of
their deps...)

So... I reversed order in the criteria. I'm sure this is what I want
when the opam switch contains only tezos-opam-repository but
unexpected upgrades occur for devs that have done a
`opam repo add default --rank=-1`...
2019-01-29 15:46:45 +01:00
Tom Jack
9fe22ef56c
Storage: optimize fold 2019-01-29 11:28:51 +01:00