Galfour
f19f3fd785
map tests
2019-03-30 18:38:21 +00:00
Galfour
941dadeb3b
added matching tests
2019-03-30 00:53:11 +00:00
Galfour
0e8ba13660
added tuples
2019-03-29 19:44:14 +00:00
Galfour
f5d9fa8266
added maps
2019-03-29 15:47:56 +00:00
Galfour
c3c4473a0b
tests for multiple parameters + records
2019-03-29 14:05:43 +00:00
Georges Dupéron
c6f74061ef
Test for lambda
2019-03-28 17:24:12 +01:00
Georges Dupéron
e58cf2a19d
Refactored typer tests + test for constructor
2019-03-28 15:56:32 +01:00
Galfour
e184903a4f
power merge
2019-03-28 14:43:49 +00:00
Galfour
3bc925cac3
Merge branch 'master' of gitlab.com:gabriel.alfour/tezos
2019-03-28 13:43:11 +00:00
Galfour
7f52774c06
multiple parameters allegedly work
2019-03-28 10:55:24 +00:00
Galfour
2ae73f80a9
multiple parameters
2019-03-28 10:26:25 +00:00
Christian Rinderknecht
98cf3a689d
The only reserved name now is "args", for the backends' sake.
2019-03-28 09:21:32 +01:00
Christian Rinderknecht
01128b6518
Fixed pattern matching of lists.
...
New syntax: nil -> ... | list [...] -> ... | list .... end -> ...
2019-03-27 18:17:23 +01:00
Christian Rinderknecht
baffeeb6eb
Series of instructions can now be interleaved with data declarations.
2019-03-27 16:13:57 +01:00
Galfour
4025e9e169
rewriting
2019-03-27 13:02:38 +00:00
Georges Dupéron
7f617263db
Unplugged AST2 and Typecheck2 which are not used anymore and break the build
2019-03-27 11:31:16 +01:00
Georges Dupéron
4bf32a8378
Disable git commit in Version.ml for now
...
It does not work well with opam install, especially if the dune file is not at the root of the repository.
2019-03-27 11:21:45 +01:00
Georges Dupéron
813b405a04
Turn ligo-parser into a library (was executable)
2019-03-27 11:21:10 +01:00
Georges Dupéron
b5dc0c9e64
Merge AST_with_records into master
2019-03-27 11:17:20 +01:00
Georges Dupéron
4ffccb8dad
Moved all files into src/ligo/ligo-parser prior to merge into the main code base
2019-03-27 11:16:20 +01:00
Georges Dupéron
ea358f7101
Removed manual copy of ligo-parser prior to merging Christian's history
2019-03-27 11:13:15 +01:00
Galfour
89a7821e87
Merge branch 'master' of gitlab.com:gabriel.alfour/tezos
2019-03-27 06:30:14 +00:00
Galfour
7716f78139
more tests
2019-03-27 06:30:05 +00:00
Georges Dupéron
e342c278d7
Some typer tests for expressions
2019-03-26 16:20:40 +01:00
Galfour
5507482b2d
test for condition
2019-03-26 09:59:20 +00:00
Galfour
1fe74323be
more tests
2019-03-26 08:36:22 +00:00
Galfour
043387ec14
better test
2019-03-26 07:28:01 +00:00
Galfour
10bcecc490
basic top level
2019-03-25 20:52:09 +00:00
Georges Dupéron
984fa24ca6
Installation seems to work using README_INSTALL
2019-03-25 17:16:46 +01:00
Georges Dupéron
1ec945fa4b
Installation commands (temporary)
2019-03-25 14:38:06 +01:00
Georges Dupéron
afca07d888
This version of OCaml (4.06.1 with dune/opam) seems to not like shadowing vs. open
...
The shadowing worked fine with a standalone ocaml 4.07.1 (no dune or opam use)
2019-03-25 14:38:06 +01:00
Georges Dupéron
3cb9a311ee
Disable git commit in Version.ml for now
...
It does not work well with opam install, especially if the dune file is not at the root of the repository.
2019-03-25 14:38:06 +01:00
Georges Dupéron
f614c692d1
Initial import of Rope library
2019-03-25 14:38:06 +01:00
Galfour
f08b0e155b
fixed tezos-utils.opam
2019-03-25 07:48:43 +00:00
Galfour
7ba31d4d7d
introspection
2019-03-24 18:53:20 +00:00
Galfour
47c8e96e95
more basic structure
2019-03-24 17:35:43 +00:00
Galfour
ccd4a17aac
pipeline works
2019-03-23 13:47:18 +00:00
Galfour
ecefa598f7
ez run main
2019-03-23 12:48:20 +00:00
Galfour
9adbbb34bc
pipeline ok
2019-03-23 10:52:25 +00:00
Galfour
0ffd3d4b64
tmp
2019-03-22 20:08:37 +00:00
Galfour
66974949b2
first working example of the whole pipeline
2019-03-21 21:37:44 +00:00
Galfour
0975f71059
tmp
2019-03-21 14:53:09 +00:00
Galfour
8819422542
pre big modif
2019-03-20 22:04:39 +00:00
Galfour
d23c49920c
tmp
2019-03-20 17:25:32 +00:00
Galfour
a9f88e3ddf
tmp
2019-03-20 17:06:12 +00:00
Galfour
1918bc00d1
tmp
2019-03-20 14:54:30 +00:00
Galfour
fa4b570950
translations from typed-ligo to mini-c
2019-03-14 18:22:51 +00:00
Galfour
7cc6a681b1
add ligo-parser
2019-03-13 21:04:02 +00:00
Galfour
84dbf1f7ee
add ligo
...
remove old lib_ligo
modified ligo opam
2019-03-13 14:17:19 +00:00
Galfour
ff48226748
add ligo-helpers
...
moved helpers
modified ligo-helpers opam
2019-03-13 14:14:45 +00:00
Galfour
c449a76841
add meta-michelson
...
moved meta-michelson
modified meta-michelson
2019-03-13 14:11:55 +00:00
Galfour
b197c30299
modify proto-alpha
2019-03-13 11:56:49 +00:00
Galfour
4b4c450b9a
add tezos-utils
2019-03-13 11:12:15 +00:00
Galfour
cd86fea0e2
add memory-protocol-alpha
2019-03-13 10:26:29 +00:00
Elliot Cameron
6ce10791b0
Ledger: add deauth APDU support, better get-authorized-key support, and friendlier CLI
2019-03-06 16:05:23 +00:00
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
Marco Stronati
356f4df169
Alpha: rename versions to alpha_{current,previous}
...
Remove initialization from protocol 002.
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
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
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
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
3c1601d9a0
Update tezos-init-sandboxed-client.sh
2019-02-01 05:36:37 +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
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
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
Tom Jack
9fe22ef56c
Storage: optimize fold
2019-01-29 11:28:51 +01:00
Grégoire Henry
4026d6ab58
Client: improve logging on protocol injection
2019-01-24 14:09:19 +01:00
Marco Stronati
b09e89f9f3
Client: fix validation of proposals before submission
...
for a proposal to be valid it must either a protocol that was already
proposed by somebody else or a protocol known by the node, because the
user is the first proposer and just injected it with
tezos-admin-client
2019-01-24 14:09:18 +01:00
Marco Stronati
344f8d3e5f
Client: fix output of show voting period
2019-01-24 14:09:16 +01:00
Pietro Abate
4d3174c557
Shell: Catch Lwt.Canceled during worker termination
2019-01-24 13:43:37 +01:00
Grégoire Henry
b5515ea99e
Shell: continue better logging
2019-01-24 13:43:36 +01:00
Pietro Abate
5915e98a55
shell: Better Logging
2019-01-24 13:31:59 +01:00
Pietro Abate
b5499b37d5
Shell: Catch timeout errors and improve reporting
2019-01-24 13:29:59 +01:00
MBourgoin
80587889d5
Client: make operation hash messages consistent (fix bug in test_multinode.sh)
2019-01-24 10:08:27 +00:00
Pierre Boutillier
03fc4b2e33
fixup 242c97d1
ocplib-json-types: 'Variable defintion path in json_schema'
2019-01-23 13:12:42 +01:00
MBourgoin
464de6d6b8
Client: improve password file reading
2019-01-22 18:52:43 +01:00
MBourgoin
dc67e93907
Client: update copyrights
2019-01-22 18:52:42 +01:00
Pietro
1c0561ee53
Client: add new password-file command line option
...
- add new global command line argument to the signer
-f --password-file <filename>: Absolute path of the password file
- add password_filename to wallet context
2019-01-22 18:52:40 +01:00
Grégoire Henry
96aa1aa621
Opam: add version contraint for lwt.
2019-01-22 17:16:51 +01:00
Grégoire Henry
c5eb5bb93d
Opam: add strict dependencies for ocp-indent
2019-01-22 17:16:50 +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