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
Eugen Zalinescu
1a7cf2fead
proto_genesis: remove the dependency on proto_alpha
2019-01-10 17:04:23 +01:00
Tom Jack
86e355c32e
Client: fix fee calculation
2019-01-08 15:55:19 +00:00
Benjamin Canou
6f07a25a3c
Revert protocol Alpha to 003-PsddFKi3
2019-01-07 15:12:42 -05:00
Raphaël Proust
fd6ce36a7d
Everywhere: use return_*
...
for * in unit none some true false
2019-01-03 12:21:17 +00:00
Raphaël Proust
1767fcc861
Proto: use return_*
...
for * in unit none some true false
2019-01-03 12:21:17 +00:00
Benjamin Canou
618082ed18
Client: cosmetic updates in voting commands
2019-01-03 10:23:15 +00:00
Marco Stronati
cacd3826e4
Client: tweak 'show voting period', add rpc to test, check right period
2019-01-03 10:23:15 +00:00
Marco Stronati
8016f83903
Client: cosmetic or minor improvements
2019-01-03 10:23:15 +00:00
Jun FURUSE
f8d8c4d6e9
Client: check that proposals are already injected
2019-01-03 10:23:15 +00:00
Jun FURUSE
e0a8718922
Client: add voting commands
...
tezos-client show votes to show the current voting status
tezos-client submit proposals for PKH PROP1 .. to submit proposals
tezos-client submit ballot for PKH PROP yay|nay|pass to submit a ballot
2019-01-03 10:23:15 +00:00
Raphaël Proust
7e81fe6c9c
Shell/mempool: pretty-printing
2019-01-02 23:50:35 +00:00
Raphaël Proust
c02a970a28
Shell/mempool: handle failure to re-instantiate prevalidator
...
When the protocol changes, the prevalidator is re-instantiated. In case
this fails, the old-prevalidator still needs to be shutdown.
2019-01-02 23:38:02 +00:00
Pietro Abate
cd25bb4160
Shell: Worker initialization in error monad
...
Co-authored-by: Pietro Abate <pietro.abate@tezcore.com>
Co-authored-by: Raphaël Proust <code@bnwr.net>
Co-authored-by: Mathias Bourgoin <mathias.bourgoin@tezcore.com>
2019-01-02 23:38:02 +00:00
Sebastien Mondet
c994428f77
Hide Ledger's “191-warning” on both Linux & MacOSX
2019-01-02 19:11:53 +00:00
Pierre Boutillier
cb038afa42
Revert "Target only USB ledger with interface number 0"
...
This reverts commit 02bc43b094
and
should restore compatibility with Ledgers on MacOS.
2019-01-02 19:11:53 +00:00
Philippe Bidinger
6895d7a87b
Stdlib: add some docstrings
2019-01-02 19:22:09 +01:00
Eugen Zalinescu
febaa3b7ed
voting: 3 new small tests
2019-01-02 17:07:34 +00:00
Sebastien Mondet
8b054deee3
Signer/Ledger: improve tezos-client show ledger
command
2019-01-02 17:50:37 +01:00
Sebastien Mondet
02b1d3e93d
Signer/Ledger: allow ledger://...
URIs without curve/path
2019-01-02 17:50:36 +01:00
Philippe Bidinger
423af85c76
online doc for --connections
2018-12-21 12:08:41 +01:00
Pietro Abate
e7b00b368d
Stdlib: remove spurious comment in weakTableRing
2018-12-20 17:06:34 +01:00
MBourgoin
58a3abcb4c
StdLib: introduce a WeakRingTable based on ephemerons for bounded cache/memoization purposes
...
Co-authored-by: MBourgoin <mathias.bourgoin@tezcore.com>
Co-authored-by: Raphaël Proust <code@bnwr.net>
Co-authored-by: Pietro Abate <pietro.abate@tezcore.com>
2018-12-18 16:02:18 +01:00
Raphaël Proust
903f56d5c9
Shell/mempool_peer_worker: improve docstrings
2018-12-17 15:20:09 +01:00
Pietro Abate
35bccd05b1
Mempool: fix minor copyright and docstring strings
...
and change Work.work in Work.process_batch
2018-12-17 15:20:09 +01:00
Raphaël Proust
7cbf457888
Shell/mempool: bounded peer-workers request-queue size
2018-12-17 15:20:09 +01:00
Raphaël Proust
31242ebcb9
Shell/mempool: throttle peer workers
2018-12-17 15:20:08 +01:00
Raphaël Proust
8ba2bc2001
Shell/mempool: add identifiers to Worker.Name instances
2018-12-17 15:20:08 +01:00
Raphaël Proust
6a14afc1b0
Shell: introduce Mempool_peer_worker
...
A module for the ongoing mempool overhaul.
Co-authored-by: Pietro Abate <pietro.abate@tezcore.com>
Co-authored-by: Raphaël Proust <code@bnwr.net>
Co-authored-by: MBourgoin <mathias.bourgoin@tezcore.com>
2018-12-17 15:20:08 +01:00
Raphaël Proust
ad9d087031
Shell/Mempool: limited, configurable size of parsed cache
2018-12-17 15:20:07 +01:00
Pietro Abate
0bb2f3d4d1
Mempool: cache result and operation in ValidatedCache
2018-12-17 15:20:07 +01:00
Raphaël Proust
1420715ab9
Shell/Mempool: minor clean up, remove unneeded function
2018-12-17 15:20:07 +01:00
Pietro Abate
e7a967376c
Mempool: unbox Request message and clarify pp message
2018-12-17 15:20:07 +01:00
Pietro Abate
34e8a1ce1e
Mempool: split validated operations cache and parsed operations cache
2018-12-17 15:20:06 +01:00
Pietro Abate
71790470ad
Mempool: make Mempool_worker.parse non-blocking.
2018-12-17 15:20:06 +01:00
Raphaël Proust
6b7031ad3c
Mempool_peer_worker: simpler interface
...
Removes unecessary primitives, types, etc.
2018-12-17 15:20:06 +01:00
Raphaël Proust
1431bcd6c8
Mempool_peer_worker: minor improvements
2018-12-17 15:20:05 +01:00
Raphaël Proust
460262130e
Mempool_peer_worker
...
A module for the ongoing mempool overhaul.
2018-12-17 15:20:05 +01:00
Raphaël Proust
5059b6ad4e
Mempool_worker: only introduce errors where they are needed
2018-12-17 15:20:05 +01:00
Raphaël Proust
7e687f8608
Mempool_worker: error management at create
2018-12-17 15:20:05 +01:00
phink
0d22209028
Micheline: fix forgotten annotation
2018-12-17 12:30:44 +00:00
Sebastien Mondet
8772b23235
Make register key .. as delegate
“idempotent”
2018-12-14 12:50:25 -05:00
Tom Jack
d53918451b
Shell: mempool RPC fixes
2018-12-11 21:31:28 +00:00
Tom Jack
4449389ef2
Michelson: fix roman numeral DIP unexpansion
2018-12-10 14:00:24 +00:00
Vincent Bernardoff
f35b7f33ed
Everywhere: sed 's/picotez/nanotez/g'
2018-12-04 13:26:41 +00:00
Eugen Zalinescu
a8aac1ca03
Alpha: test reward retrieval with two endorsers
2018-12-03 16:18:47 +01:00
James Deikun
08d94170be
More logging for the client daemons
...
- log seen blocks and heads when monitoring
- more detailed logging for baked blocks
- more detailed logging for endorsements
- more detailed logging for denunciations
- more detailed logging for nonce revelations
2018-12-03 16:00:58 +01:00
Pietro Abate
214055ac62
RPC: print uri in RPC_context.Not_found
2018-12-03 14:30:23 +00:00
Raphaël Proust
5cc9e6ccc6
Shell/Mempool: limited, configurable size of parsed cache
2018-12-03 14:08:11 +00:00
Pietro Abate
2d5c56eeca
Mempool: cache result and operation in ValidatedCache
2018-12-03 14:08:11 +00:00
Raphaël Proust
52d7215ed2
Shell/Mempool: minor clean up, remove unneeded function
2018-12-03 14:08:11 +00:00
Pietro Abate
98d772cc75
Mempool: unbox Request message and clarify pp message
2018-12-03 14:08:11 +00:00
Pietro Abate
fee5f44d63
Mempool: split validated operations cache and parsed operations cache
2018-12-03 14:08:11 +00:00
Pietro Abate
56ee8ba849
Mempool: make Mempool_worker.parse non-blocking.
2018-12-03 14:08:11 +00:00
Jun FURUSE
b843dbcb7b
Typo fixes
2018-12-01 06:57:40 +00:00
Vincent Botbol
3290c10531
Baker: log included operations on block injection failure
2018-11-26 19:33:44 +01:00
Vincent Botbol
c13a7135f8
Baker: fix inconsistency in logging
2018-11-26 19:33:36 +01:00
Vincent Botbol
030916ed11
Prevalidation: fix preapply where applied operations would be reversed
2018-11-26 18:34:45 +01:00
Lý Kim Quyên
86d7306e47
Tests: fix test of instruction STEPS_TO_QUOTA
2018-11-26 15:07:09 +01:00
Grégoire Henry
c2049a3a18
Client/Alpha: implements --fee-cap
and --burn-cap
2018-11-24 07:22:50 +01:00
Vincent Botbol
9f52c43cff
Baker/Endorser: record baked blocks and endorsement before injecting
2018-11-23 23:13:03 +01:00
Grégoire Henry
3b46f49651
Alpha: minor fixes
2018-11-23 22:45:18 +01:00
Grégoire Henry
fa4b33aa47
Alpha: fix gas consumption for manager operations
2018-11-23 22:45:17 +01:00
Grégoire Henry
ee722a237a
Alpha/Baker: use picotez for minimal_fees_per_{gas_unit,byte}
2018-11-23 21:54:16 +01:00
Marco Stronati
e3111bc574
Shell: add rpc to trigget a Get_current_event
2018-11-23 21:45:35 +01:00
Grégoire Henry
6b3517e095
Alpha/Test: fix voting test
2018-11-23 21:44:52 +01:00
Grégoire Henry
6e0cc99a03
Alpha: fix punishment for unrevealed nonces.
2018-11-23 18:38:40 +01:00
Grégoire Henry
8a8912c9bd
Mempool: correctly filter out endorsement without bond
2018-11-23 18:38:23 +01:00
Marco Stronati
065d629e7c
Alpha/Vote: faster refusal of too many proposals
2018-11-23 18:38:01 +01:00
Grégoire Henry
30aa2ec204
Alpha: increased gas cost for origination
2018-11-23 18:37:16 +01:00
Tom Jack
9afdd9b167
Alpha: count origination burn towards storage limit
2018-11-23 18:36:58 +01:00
Grégoire Henry
4b6f471ead
Alpha/Baking: add minimal fees and wait for late endorsement
2018-11-22 20:38:38 +01:00
Pierre Chambart
56936c7a1e
Add sync test option
2018-11-22 19:06:19 +01:00
Pietro Abate
2baa6c830c
Mempool: filter pendinds to include endorsement only
2018-11-22 18:20:50 +01:00
Marco Stronati
0b98dbd472
Shell: add rpc to trigget a Get_current_event
2018-11-22 18:20:49 +01:00
Benjamin Canou
fc42bd5a91
Alpha: increment version string and update context stitching
2018-11-22 18:17:36 +01:00
Grégoire Henry
c656d54500
Alpha: improve storage
2018-11-22 18:17:35 +01:00
Grégoire Henry
1dc748ee47
Alpha: maintain the set of delegates with frozen balance
2018-11-22 18:17:35 +01:00