Commit Graph

2213 Commits

Author SHA1 Message Date
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
Vincent Bernardoff
d7d7457fa3 Node/RPC: listens on all resolved RPC addresses 2018-07-27 14:40:08 +00:00
Pietro
c7cfdcb4d9 [Doc]: Fix minor warnings and errors in the doc 2018-07-25 15:58:38 +02:00
Pietro
b89682e441 Build: Jbuilder -> Dune 1.0.1 2018-07-24 19:15:04 +02:00
Vincent Bernardoff
907423a85b Signer/TCP: more flexible spec 2018-07-24 13:50:08 +00:00
Vincent Bernardoff
fe21585462 Utils/Socket: use getaddrinfo instead of gethostbyname 2018-07-24 13:50:08 +00:00
Benjamin Canou
b76b5367bb
Alpha: use underscores in error ids 2018-07-24 14:56:12 +02:00
dbornside
67cca7dd93 Node: change node config diagnostics json field labels to use underscores 2018-07-24 14:37:49 +02:00
dbornside
289cc7ba96 Alpha: fix Michelson interpreter diagnostics field names to have underscores 2018-07-24 14:37:49 +02:00
dbornside
41b98dac63 Alpha: change documented field labels to underscores in json field names 2018-07-24 14:37:49 +02:00
dbornside
ea5992d030 Alpha: change managerPubkey to underscores in json field names 2018-07-24 14:37:49 +02:00
Grégoire Henry
c1d89e3777
Compiler: use -hash-only in the test suite 2018-07-24 14:18:06 +02:00
Grégoire Henry
90ef97b38b Compiler: by default, enforce the hash declared in TEZOS_PROTOCOL 2018-07-21 01:06:51 +02:00
Grégoire Henry
588832f04c Proto: revert to the dummy hash for genesis 2018-07-21 00:29:13 +02:00
Grégoire Henry
fedf5d66c6 Proto: revert to the dummy hash for alpha 2018-07-21 00:28:48 +02:00
Pierre Chambart
30def07aee Sandbox: Update scripts 2018-07-20 17:34:42 +02:00
Grégoire Henry
663127468d Accuser: ignore heads from protocols 2018-07-20 12:25:06 +00:00
Grégoire Henry
213bedaf58 Alpha: fix up compatibility for encoding of michelson primitives 2018-07-20 04:31:17 +02:00
Benjamin Canou
70fddce545 Micheline: versioned serializer for retrocompatibility 2018-07-19 19:26:24 +02:00
Alain Mebsout
a7eb0cdf36 Micheline: Fix binary deserialization of annotations
Fixes #262
2018-07-19 19:26:24 +02:00
Benjamin Canou
3ca1fc9509 Michelson: add missing bytes primitives on comparable_ty (thanks @tomjack) 2018-07-19 19:04:35 +02:00
Pierre Chambart
09592a6eeb Michelson: test compare on bytes and concat on 2 strings 2018-07-19 19:04:35 +02:00
Pierre Chambart
74b7ca2c77 Michelson: allow CONCAT on two bytes/strings 2018-07-19 19:04:35 +02:00
Benjamin Canou
e70cd5c645 Michelson: a few new tests 2018-07-19 19:04:35 +02:00
Benjamin Canou
7a9be54bd0 Michelson: add SIZE on string and bytes 2018-07-19 19:04:35 +02:00
Benjamin Canou
7508895e2d Michelson: add SLICE instruction on strings and bytes 2018-07-19 19:04:35 +02:00
Benjamin Canou
cd9dd32665 Michelson: add CONCAT on bytes 2018-07-19 19:04:35 +02:00
Benjamin Canou
c691068209 Michelson: change semantics of CONCAT 2018-07-19 19:04:35 +02:00
Benjamin Canou
bd709a44ba Michelson: parse bytes as a comparable_ty (thanks @catsigma) 2018-07-19 19:04:35 +02:00
Pierre Chambart
5a60dff917 Protocol_compiler: Add an option to avoid compiling 2018-07-19 18:52:00 +02:00
Grégoire Henry
077b3cd964 Script: add archive_protocol.sh 2018-07-19 18:52:00 +02:00
Grégoire Henry
50151c55a1 Compiler: allow for _ in protocol directory name. 2018-07-19 18:52:00 +02:00
Grégoire Henry
9b9c3a1bee Proto: avoid conflict between client errors 2018-07-19 18:52:00 +02:00
Pierre Chambart
cff6c4beb1 Alpha_002: forced registration for unregistered delegates 2018-07-19 18:52:00 +02:00
Pierre Chambart
15857d7e90 Alpha_002: prepare for Proto_alpha upgrade 2018-07-19 00:32:39 +02:00
Pierre Chambart
e80839efe1 Alpha: really allow big maps in lambda 2018-07-18 21:45:21 +00:00
Pierre Chambart
9bec16b6a2 Alpha: typecheck_data shouldn't allow big maps 2018-07-18 21:45:21 +00:00
Benjamin Canou
93a5b3fb7d Michelson: allow big_maps in more places 2018-07-18 21:45:21 +00:00
Grégoire Henry
c91f082a28
Makefile: rename tezos-$protocol-baker to tezos-baker-$protocol 2018-07-18 23:43:49 +02:00
Pierre Chambart
ae1f325b76 Baker: correct handling of protocol upgrades 2018-07-18 22:34:13 +02:00
Grégoire Henry
86091e98c6 Baker: use next_protocols when calling GET /monitor/heads 2018-07-18 22:34:13 +02:00
Grégoire Henry
f9dd92d6b4 Shell/RPC: fix filtering of next_protocols in GET /monitor/heads 2018-07-18 22:34:13 +02:00
Grégoire Henry
378c4e2780 Node: --connections now implies --peer-table-size 2018-07-18 17:48:39 +02:00
Grégoire Henry
41fe7d17ea Node: check that the size of known_peer_ids is coherent 2018-07-18 17:48:39 +02:00
Grégoire Henry
c0d42c8f46 P2p: do not drop currently connected peers 2018-07-18 17:48:39 +02:00
Vincent Botbol
4fe9f82735 Alpha/Tests: add self-delegation on origination test cases 2018-07-17 16:56:56 +02:00
Vincent Botbol
07486a3027 Alpha/Origination: ensure that delegate's originated accounts are registered 2018-07-17 16:46:29 +02:00
Alain Mebsout
da986e27ab Proto: show Michleson error traces in correct order 2018-07-17 13:52:04 +00:00
Alain Mebsout
e52455f00a RPC: new client command and RPC to retrieve big map value by key 2018-07-17 13:42:04 +00:00
Alain Mebsout
82f20ade37 Proto: show big map diff in transaction receipt 2018-07-17 13:42:04 +00:00
Alain Mebsout
d73d3fdf2b Proto: Show big map diffs with keys as expressions in addtion to hashes 2018-07-17 13:42:04 +00:00
Alain Mebsout
2da9a5331e Client: Say which file would not be read 2018-07-17 13:42:04 +00:00
Alain Mebsout
a36f42506a Alpha: Fix CREATE_CONTRACT spends twice 2018-07-17 14:37:54 +02:00
Milo Davis
7d58552bd5 Michelson: add command to view bytes as Michelson 2018-07-17 14:09:54 +02:00
Grégoire Henry
122a2421a6 Client/Test: fix sandbox detection 2018-07-17 13:51:53 +02:00
Vincent Bernardoff
41f6757ef8 Everywhere: exception Not_found -> _opt 2018-07-13 01:31:04 +02:00
Grégoire Henry
359f858c3e
CI: fix opam dependencies 2018-07-11 23:27:04 +02:00
Vincent Botbol
6909f0b3bc
Shell: benchmark for the context storage
Co-authored-by: Quyen <kim.quyen.ly@tezos.com>
Co-authored-by: Grégoire Henry <gregoire.henry@tezos.com>
Signed-off-by: Grégoire Henry <gregoire.henry@tezos.com>
2018-07-11 21:02:14 +02:00
Grégoire Henry
ea4e33b0e2 Client: preload encrypted keys when running a daemon (again)
This is 370114eb8b again, sigh.
2018-07-09 13:02:06 +02:00
Vincent Bernardoff
d6fac868ee Signer/Ledger: hash big payloads on Ledger if supported 2018-07-06 23:27:20 +02:00
Benjamin Canou
edc1a6512f CI: fix p2p opam tests 2018-07-06 19:11:50 +02:00
Grégoire Henry
c0222e53ee CI: use the new opam images from tezos/opam-repository 2018-07-06 18:18:41 +02:00
Benjamin Canou
8aec39d8bb CI: use IPv4 in p2p tests 2018-07-06 18:05:10 +02:00
Benjamin Canou
9bc9768e17 Fix OPAM dependencies 2018-07-04 19:03:31 +02:00
Vincent Bernardoff
7f569b45fa Signer/Encrypted: typos 2018-07-04 09:47:25 +02:00
Vincent Bernardoff
a0f5cb09db Signer/Encrypted: add test 2018-07-04 09:47:25 +02:00
Vincent Bernardoff
ea78c9b6d6 Signer/Ledger: major > 1 also supports P256 2018-07-03 14:55:28 +00:00
Pierre Chambart
8581264d11 Tests: add a Michelson guestbook test contract 2018-07-03 15:30:28 +02:00
Benjamin Canou
c3c4e3d5a8 Tests: fix injection test after headers update 2018-07-03 15:26:10 +02:00
b
322710c56c Update wrong licenses 2018-07-03 12:04:24 +02:00
Benjamin Canou
74732d7711 Sync with betanet 2018-07-02 10:53:20 +02:00
Benjamin Canou
6c00f64dfb Proto Genesis's hash is its actual hash 2018-06-30 18:56:30 +02:00
Benjamin Canou
252435d280 Proto Alpha's hash is its actual hash 2018-06-30 18:56:30 +02:00
Benjamin Canou
12b72c9a0b Set Betanet activation key 2018-06-30 18:46:23 +02:00
Pierre Boutillier
140bd6b1ca Tezos is now Open Source 2018-06-30 17:41:32 +02:00
Benjamin Canou
712f972a10 Update initial nonces 2018-06-30 15:48:01 +02:00
Benjamin Canou
6cf03d0f6b Client: select commands depending on the network 2018-06-30 15:01:22 +02:00
Vincent Bernardoff
99e5cd3186 Client: do not expose insecure functions (betanet) 2018-06-30 14:28:11 +02:00
Vincent Bernardoff
e92e1aee17 Signer/Encrypted: use custom Base58Check prefixes 2018-06-30 14:28:11 +02:00
Vincent Bernardoff
dee9c470fd Crypto: more compact Secretbox representation 2018-06-30 14:28:11 +02:00
Vincent Botbol
b885b03ef6 Alpha: correctly apply recursion on backtrack operation application 2018-06-30 14:12:40 +02:00
Benjamin Canou
63159f2a5d It's the final constants 2018-06-30 14:12:12 +02:00
Pierre Chambart
a5374a2494 Alpha: Always allow operations as argument of lambda 2018-06-30 13:25:28 +02:00
Benjamin Canou
ee7a67b915 Michelson: fix PACK/UNPACK 2018-06-30 12:38:05 +02:00
Vincent Botbol
f59b0aa44f Alpha/Baker: only retain applied, delayed and unprocessed mempool operations 2018-06-30 04:43:16 +02:00
Vincent Botbol
fbefa3940d Alpha/Baker: filter out outdated operations 2018-06-30 04:43:16 +02:00
Vincent Botbol
c479c65cdf Shell: add rpc to retrieve live blocks 2018-06-30 04:43:16 +02:00
Pierre Chambart
f381693da8 Alpha: Fix commitment bug 2018-06-30 04:09:51 +02:00
Benjamin Canou
f5091bf5e6 Michelson: fix gas cost for CONTRACT 2018-06-30 03:56:15 +02:00
Benjamin Canou
546eff6eb7 Michelson: adjust gaz weights 2018-06-30 01:41:14 +02:00
Benjamin Canou
33e6d89ce9 Michelson: fix gas costs for PACK/UNPACK 2018-06-30 01:41:14 +02:00
Benjamin Canou
79b4767370 RPCs: better errors when querying out of bound operations 2018-06-30 01:40:33 +02:00
Benjamin Canou
42a8fbaf77 Alpha: set block size constants 2018-06-29 21:45:41 +02:00
Vincent Botbol
8ff740c8ee Alpha/Baker: ensure that anonymous operations do not overflow in the block 2018-06-29 20:37:06 +02:00
bruno
1368eed80c Alpha/Tests/delegation: deactivation and self-delegation when empty 2018-06-29 16:44:57 +00:00
Vincent Botbol
523d44354c Alpha/Baker: ensure that we apply the operations in the correct order 2018-06-29 17:50:17 +02:00
Vincent Botbol
b6cf4ff8a8 Alpha/Baker: correctly filter potential overflowing manager operations, sort them using a knapsack approximation 2018-06-29 17:50:17 +02:00
Vincent Botbol
83f4a162dc Alpha/Baker: forge a block locally 2018-06-29 17:50:17 +02:00
Vincent Botbol
d8805ede7b Shell: comment typo 2018-06-29 17:50:17 +02:00
Vincent Bernardoff
2830ca3232 P2p: P2p_pool.Peers.ban now also kick target 2018-06-29 15:27:26 +00:00
Benjamin Canou
e1195e6f3e Client: use TEZOS_CLIENT_UNSAFE_DISABLE_DISCLAIMER=Y to disable the banner 2018-06-29 17:05:30 +02:00
Marco Stronati
797b26c16c Client: warning to wait 30 blocks for confirmation 2018-06-29 16:53:54 +02:00
bruno
9ee7cf18fd Alpha/Tests/delegation: add double registration test
Emptied and then recredited between the two self-delegations.
2018-06-29 14:33:48 +00:00
bruno
1b6eca4d89 Alpha/Tests/delegation: add double delegation when empty test
Slight improvement of double delegation test
2018-06-29 14:33:48 +00:00
bruno
a2bc2c4aad Alpha: do not delete delegate change of an empty delegate account 2018-06-29 14:33:48 +00:00
Benjamin Canou
ac58132588 Tests: a few more michelson tests 2018-06-29 16:18:17 +02:00
Alain Mebsout
e81b045d42 Alpha: minor adjustments to gas costs 2018-06-29 16:18:17 +02:00
Benjamin Canou
c2a143a30a Client: missing error message 2018-06-29 16:18:17 +02:00
Benjamin Canou
3677550e4d Alpha: synchroinize apply and simulate wrt. gas 2018-06-29 16:18:17 +02:00
Benjamin Canou
ffb3890f80 Alpha: fix gas accounting in lazy decoding 2018-06-29 16:18:17 +02:00
Benjamin Canou
8db9fb328f Client: fix some error pretty printing 2018-06-29 16:18:17 +02:00
Pierre Chambart
32c5f47593 Alpha: remove some rebasing artefact that should be removed 2018-06-29 16:18:17 +02:00
Benjamin Canou
820fb9ab18 Alpha: fix some comments about non gazeified functions 2018-06-29 16:18:17 +02:00
Alain Mebsout
2db455274c Alpha: some missing gas in parse_data 2018-06-29 16:18:17 +02:00
Alain Mebsout
5d4101d85a Alpha: consume (de)serialization gas for big maps in context 2018-06-29 16:18:17 +02:00
Alain Mebsout
34d9f7e649 Alpha: minor improvements and fixes in gas 2018-06-29 16:18:17 +02:00
Benjamin Canou
7159b92cbd Michelson: gas costs tweaks and fixes 2018-06-29 16:18:17 +02:00
Alain Mebsout
b1515dc376 Alpha: consume typechecking gas in type equality for expansion 2018-06-29 16:18:17 +02:00
Benjamin Canou
589bb54abe Michelson: factor unparsing and deserialization cost computations 2018-06-29 16:18:17 +02:00
Benjamin Canou
a8d2998170 Michelson: unplug internal operation parsing 2018-06-29 16:18:17 +02:00
Benjamin Canou
4b9d2114b2 Alpha: thread gas accounting in unparse_ty 2018-06-29 16:18:17 +02:00
Benjamin Canou
da7c71a7aa Alpha: add a few comments 2018-06-29 16:18:17 +02:00
Benjamin Canou
f946443b3b Alpha: fix error description 2018-06-29 16:18:17 +02:00
Alain Mebsout
43f818dc66 Alpha: comsume cost of parsing/typing instructions in script 2018-06-29 16:18:17 +02:00
Benjamin Canou
005517e849 Client: fix command get script code 2018-06-29 16:18:17 +02:00
Alain Mebsout
9da9a8440e Alpha: consume gas for parsing types 2018-06-29 16:18:17 +02:00
Alain Mebsout
f6c4be2b40 Alpha, Client: don't count gas for unparsing in logging 2018-06-29 16:18:17 +02:00
Alain Mebsout
0c8549b871 Alpha: remove minimal serialization gas computation 2018-06-29 16:18:17 +02:00
Alain Mebsout
8648555f01 Alpha: raise permanent error on gas exhaustion in precheck 2018-06-29 16:18:17 +02:00
Alain Mebsout
0dee466736 Alpha: set gas limit in precheck and re-consume gas in apply 2018-06-29 16:18:17 +02:00
Alain Mebsout
3ce320979c Alpha, Gas: consume gas for storage serialization and deserialization 2018-06-29 16:18:17 +02:00
Alain Mebsout
a69333d21f Alpha, Gas: gas accounting for serialization of data and types
Also gas accounting in errors, failures and trace
2018-06-29 16:18:17 +02:00
Alain Mebsout
fa4a3a9fe4 Alpha: cost of deserialization 2018-06-29 16:18:17 +02:00
Alain Mebsout
245b888ccc Proto, Gas: Fail at precheck if not enough gas to deserialize parameters 2018-06-29 16:18:17 +02:00
Thomas Gazagnaire
ecbab4fb77 Serialize the tree entries the same way that irmin-lmdb does 2018-06-29 15:54:20 +02:00
James Deikun
b76e759361 Make all logging level checks the same shape.
see https://gitlab.com/tezos/tezos/merge_requests/411#note_83833997
2018-06-29 14:52:47 +02:00
James Deikun
135cb2c326 Use MESSAGE for all Logging functor parameters.
see https://gitlab.com/tezos/tezos/merge_requests/411#note_83833997
2018-06-29 14:52:47 +02:00
James Deikun
634c398a70 Use text: string option since text may be absent
see https://gitlab.com/tezos/tezos/merge_requests/411#note_83833997
2018-06-29 14:52:46 +02:00
James Deikun
99c37d5214 expose find_opt and improve comments.
Thanks to Raphael Proust for the discussion on this.
2018-06-29 14:52:46 +02:00
James Deikun
91472ff1cf add log level to taps 2018-06-29 14:52:46 +02:00
James Deikun
24de29c703 documentation and untap
AMENDED: More realistic code example at a more helpful place.
2018-06-29 14:52:46 +02:00
dbornside
e7dba18980 semantic logging for client baking
AMENDED: Syn has always been DSL, Semantic has always been
Make_semantic.
2018-06-29 14:52:46 +02:00
James Deikun
98961c9335 semantic logging in lib_base
AMENDED: Syn has always been DSL, Semantic has always been
Make_semantic.
2018-06-29 01:52:10 -04:00
James Deikun
0bbc18c23b split Logging.Tag out and add documentation 2018-06-29 01:48:18 -04:00
James Deikun
d7a6973335 added a new semantic logging pathway
AMENDED: Syn has always been DSL, Semantic has always been
Make_semantic.
2018-06-29 01:43:55 -04:00
Galfour
2701012bf0 Everywhere: dictator -> activator 2018-06-29 04:10:30 +02:00
Benjamin Canou
d5fed56d46 Alpha: remove unused dictator key 2018-06-29 03:44:47 +02:00
Vincent Bernardoff
bda245f221 Signer/Ledger: sync with ocaml-ledger-wallet 2018-06-29 01:43:29 +00:00
Benjamin Canou
f6606c5f2b Shell: add some temporary message limits 2018-06-28 19:39:35 +00:00
Pierre Boutillier
f99789b255 Shell: Fix block_*_cache initialization 2018-06-28 19:39:35 +00:00
Marco Stronati
0ac1e1e842 Alpha: richer block receipt
Added:
- nonce_hash
- consumed_gas
- deactivated delegats at end cycle
- unfrozen balances at end cycle
2018-06-28 17:35:40 +00:00
Marco Stronati
0bd4ee3cfc Alpha: move balance_updates from apply_result to delegate 2018-06-28 17:35:40 +00:00
Marco Stronati
4b282ea8c5 Alpha: move block_metadata from alpha_context to apply_result 2018-06-28 17:35:40 +00:00
Marco Stronati
91d497fd4a Alpha: rename apply_operation_result to apply_results 2018-06-28 17:35:40 +00:00
Marco Stronati
3d88707eb8 Alpha: fix balance_update from Rewards to Fees 2018-06-28 17:35:40 +00:00
Grégoire Henry
a7022b2ef0 Opam: use opam2, a local switch, and a fixed remote. 2018-06-28 13:45:05 +02:00
Galfour
cf7de5cc75 Client: argument is now optional with no default in a transfer operation 2018-06-27 21:24:48 +00:00
Benjamin Canou
5696105d14 Signer: allow client to send host header 2018-06-27 22:57:02 +02:00
Milo Davis
d0dd6be9c0 Client: add get script code command 2018-06-27 20:05:38 +00:00
Benjamin Canou
44ca820944 Genesis/Alpha: include chain id in signature for blocks and endorsements 2018-06-27 21:38:52 +02:00
Grégoire Henry
5575b8b8f2 Proto/Compiler: display hash of compiled protocol 2018-06-27 11:02:08 +02: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
Pierre Chambart
7fcd986b93 Shell: Avoid recomputing rpc_directory for each flush 2018-06-27 10:54:41 +02:00
Pierre Chambart
892c91e3ac Fix some more logging name leak
The section list is only useful for functor instantiated before command
line argument parsing.
2018-06-27 02:06:09 +02:00
Pierre Chambart
dcc0f7011d Shell: Fix Logging names leak 2018-06-27 01:35:55 +02:00
Pierre Chambart
3dd4d61b71 Shell: indentation 2018-06-26 20:37:11 +02:00
Pierre Chambart
3da1e56133 Shell: Avoid leak in distributed_db_functor worker loop 2018-06-26 20:35:03 +02:00
bruno
8b8dcddd02 Alpha/Tests/transfer: add test + minor cosmetic changes 2018-06-26 18:16:39 +00:00
Quyen
ee1d56d096 Alpha/Tests/origination: add new comments 2018-06-26 18:16:39 +00:00
bruno
59fbdaf37b Alpha/Tests:origination: typos, comments, add verifications 2018-06-26 18:16:39 +00:00
Benjamin Canou
6ad461f9e2 Client: fix display of failed transactions 2018-06-26 20:00:50 +02:00
Benjamin Canou
878c63391b Client: fix gas and storage estimation 2018-06-26 20:00:39 +02:00
Benjamin Canou
7e591150e0 Client: add flag --dry-run to injection commands 2018-06-26 20:00:13 +02:00
Benjamin Canou
8ff7aac5a6 Client: add disclaimer banners 2018-06-26 19:06:30 +02:00
Pierre Chambart
91de539af7 Alpha: Fix indent 2018-06-26 18:54:15 +02:00
Pierre Chambart
03ee2224e8 Alpha: Add label to baker argument of Apply.mark_skipped 2018-06-26 18:28:43 +02:00
Benjamin Canou
3106dee82a Alpha: add explicit Backtracked case in receipts 2018-06-26 18:13:28 +02:00
Benjamin Canou
85b9a58261 Alpha: restore semantics of operation sequence failure 2018-06-26 18:13:28 +02:00
Benjamin Canou
fad851561b Client: fix error message 2018-06-26 18:13:28 +02:00
Benjamin Canou
67f95ff156 Alpha: include fees from failed operations in receipts 2018-06-26 18:13:28 +02:00
Benjamin Canou
13fb40a4c9 Alpha: check hard storage limit in precheck 2018-06-26 18:13:28 +02:00
Benjamin Canou
6efb4eb6b4 Alpha: check hard gas limit in precheck 2018-06-26 18:13:28 +02:00
Benjamin Canou
ece5dd2d78 Alpha: fix storage limit check 2018-06-26 18:13:28 +02:00
bruno
1ecc5af454 Alpha/Tests: add some tests for delegation 2018-06-26 12:57:19 +00:00
bruno
1c3d5c4232 Alpha/Test/helpers: add PKH equality functions 2018-06-26 12:57:19 +00:00
bruno
42c7b004ec Alpha/Test/helpers: add call to delegate RPC 2018-06-26 12:57:19 +00:00
bruno
9f30b220e4 Alpha/Tests: typos + useful tez related functions 2018-06-26 12:57:19 +00:00
Vincent Botbol
ffcd0a0c09 Accuser: include suggested modifications 2018-06-26 14:09:09 +02:00
Vincent Botbol
babb457354 Lib_delegate: clean up 2018-06-26 14:07:46 +02:00
Vincent Botbol
b2194fa27d Alpha/Accuser: add a new accuser adapted to the new daemon framework 2018-06-26 14:06:34 +02:00
Vincent Botbol
aa95ee8332 Accuser: add utility functions to forge double_evidence operations 2018-06-26 12:43:34 +02:00
Vincent Botbol
989c0193a1 Baker: retry once opening node's context on failed checkouts 2018-06-26 12:37:04 +02:00
Vincent Botbol
c267f04cdc Baker: remove retry calls on failing shell operation validation 2018-06-26 11:18:38 +02:00
Raphaël Proust
9cdd593e61 Alpha/Baker: avoid list concatenations 2018-06-26 13:42:41 +08:00
Raphaël Proust
d71b1648d9 Alpha/Baker,Endorser: dynamically find keys 2018-06-26 13:42:41 +08:00
Raphaël Proust
d4974aefa8 Alpha/Bake,Endorse,Denounce: outsource scheduling
This makes the scheduling its own separate problem the solution of which
can be tackled separately from the specificities of the three binaries.
2018-06-26 13:42:41 +08:00
Raphaël Proust
14ee040e97 Alpha/Baker: outsource mining
The (small) proof-of-work operation is handled separately.
2018-06-26 13:32:45 +08:00
Raphaël Proust
bde05da36a Alpha/Baker: outsource retry to lwt-utils 2018-06-26 13:32:45 +08:00
Raphaël Proust
a5cb2c1a5d Alpha/Baker: comments 2018-06-26 13:32:45 +08:00
Raphaël Proust
c35f42ff0e Alpha/Baker: fee threshold 2018-06-26 13:32:45 +08:00
Raphaël Proust
204a1c9b6a Alpha/Endorser: use filter rather than filter_map 2018-06-26 13:32:45 +08:00
Raphaël Proust
52dc0c5858 Error_monad: make filter_map_p truly parallel 2018-06-26 13:32:45 +08:00
Raphaël Proust
18f6dab856 Alpha/Denunciator: improve worker loop
- exit on errors
- log errors
2018-06-26 13:32:45 +08:00
Raphaël Proust
a220aeb1a7 Alpha/baker: names for validation passes index 2018-06-26 13:32:45 +08:00
Raphaël Proust
3f0da7668d Alpha/Endorser: use lazy init for contracts
This gives the Endorser the same semantic as the Baker: the delegate
keys are retreived once if not explicitely given as arguments.
2018-06-26 13:32:45 +08:00
Raphaël Proust
0431a13611 Alpha/Baker: less ad-hoc initialisation 2018-06-26 13:32:45 +08:00
bruno
dca83d13de Data_encoding: Fix typo 2018-06-25 21:41:14 +00:00
bruno
7d4055b327 Alpha: fix error in comment 2018-06-25 21:41:14 +00:00
bruno
23096a7009 Alpha: add missing errors registrations 2018-06-25 21:41:14 +00:00
bruno
85315c0480 Alpha: export errors 2018-06-25 21:41:14 +00:00
bruno
59cdbd3ef1 Alpha: remove non-used errors 2018-06-25 21:41:14 +00:00
Marco Stronati
5afcdb327f Alpha: comments 2018-06-25 23:26:42 +02:00
Marco Stronati
1e8bb2e103 Alpha: fix receipts for endorsement and double_{baking,endorsement} 2018-06-25 23:26:42 +02:00
Benjamin Canou
1c7d7ce712 Alpha: switch TZ1 to KT1 to limit confusion with tz1 2018-06-25 17:29:42 +02:00
Benjamin Canou
92a3c709a1 Client/RPCs: fix storage cost estimation 2018-06-25 17:25:50 +02:00
Chris Martin
2f4c002acf Fix "bootstrapping" typos 2018-06-25 15:15:19 +02:00
Marco Stronati
259c97bc9c Alpha: change encoding of Tez from int64 to Zarith n 2018-06-24 20:11:31 +02:00
Marco Stronati
6f4060011d Alpha: counter, gas_limit and storage_limit encoded with n 2018-06-24 12:03:01 +00:00
Benjamin Canou
bba88743df Shell: fix checkpoint checks in bootstrap pipeline 2018-06-24 01:25:09 +02:00
Lý Kim Quyên
aa1450d8e6 Alpha: update operation receipt for endorser 2018-06-23 21:33:08 +00:00
Pierre Chambart
04c66869c9 Fixup fix burns 2018-06-23 23:15:20 +02:00
Pierre Chambart
d00cbaf081 Alpha: receipts account for the paid storage space diff and storage space 2018-06-23 23:15:20 +02:00
Pierre Chambart
503e3c5679 Alpha: burn is 257mꜩ not µꜩ 2018-06-23 23:15:20 +02:00
Pierre Chambart
d61dc7abbd Alpha: Fix burns 2018-06-23 23:15:20 +02:00
Pierre Chambart
8ac056218c fix test for expect_failure 2018-06-23 23:13:06 +02:00
Pierre Chambart
c2483da50f Fail correctly in the tests 2018-06-23 23:13:06 +02:00
Pierre Chambart
2ef5b26b1b Fix wrong test directions 2018-06-23 23:13:06 +02:00
Pierre Chambart
7b770c52d5 Initialize Paid and used storage for contracts without code 2018-06-23 23:13:06 +02:00
Pierre Chambart
455012d4e9 Do not burn when there is nothing to burn.
It would fail when the contract is eliminated
2018-06-23 23:13:06 +02:00
Pierre Chambart
b3c670ef8f Verify some more tests 2018-06-23 23:13:06 +02:00
Pierre Chambart
e52f01caa6 Start applying 'expect failure' in tests 2018-06-23 23:13:06 +02:00
Pierre Chambart
ad827cf060 Mor euseful tests 2018-06-23 23:13:06 +02:00
Pierre Chambart
dd8e4d85f9 Alpha: Rename Fees into Fees_storage
It was moved before ALpha_context
2018-06-23 23:13:06 +02:00
Pierre Chambart
a754672bcf Alpha: Storage burn hapens at the end of manager operations 2018-06-23 23:13:06 +02:00
Benjamin Canou
1e9a6e9941 Alpha: bootstrap accounts and contracts cleanup 2018-06-23 18:14:08 +02:00
Pierre Chambart
dd933b422b Alpha: bootstrap contracts are typechecked 2018-06-23 17:45:48 +02:00
Grégoire Henry
bb288ac64b Alpha: more verbose endorser 2018-06-23 04:31:41 +02:00
Vincent Bernardoff
1c71b1fafb Client/Alpha: add activate fundraiser account 2018-06-23 04:09:34 +02:00
Vincent Bernardoff
67938bb191 Client: reintroduce import fundraiser secret key 2018-06-23 04:09:34 +02:00
Pietro
79b2a4e825 Client: wait for the node to be bootstrapped before injecting an operation 2018-06-23 03:12:33 +02:00
Benjamin Canou
4c4400a073 Alpha: remove a few more try ... with 2018-06-23 00:30:16 +02:00
bruno
105d8e3833 Protocol environment: remove unsafe functions that have a safe(r) equivalent 2018-06-23 00:29:39 +02:00
bruno
e498a15a1a Alpha: replace 'try ... with' 2018-06-22 22:01:48 +00:00
bruno
1ccdea0d08 Protocol Environment: replace try ... with 2018-06-22 22:01:48 +00:00
bruno
9a8354680a Protocol Environment / Z: add doc 2018-06-22 22:01:48 +00:00
bruno
3eaacb4b85 Protocol Environment: add missing copyright banners 2018-06-22 22:01:48 +00:00
bruno
ba8b72f66a Protocol environment / Format: remove not needed functions 2018-06-22 22:01:48 +00:00
bruno
371dc971e1 Protocol environment / Format: replace with 4.06.1 version 2018-06-22 22:01:48 +00:00
bruno
1a67c2865d Protocol environment / List: update to 4.06.1 2018-06-22 22:01:48 +00:00
bruno
ae30b52bd6 Protocol Environment / Int64: update to 4.06.1 2018-06-22 22:01:48 +00:00
bruno
f428af9b50 Protocol environment / Int32: update to 4.06.1 2018-06-22 22:01:48 +00:00
bruno
5e73ef8fea Protocol environment / Pervasives: remove floating-point arithmetic
Also remove string conversion functions for float.
2018-06-22 22:01:48 +00:00
bruno
3ae114f1c9 Protocol environment / Pervasives: update to 4.06.1 2018-06-22 22:01:48 +00:00
bruno
2af0cb6b75 Protocol environment / Set: update to 4.06.1 2018-06-22 22:01:48 +00:00
bruno
12b6af10ee Protocol environment / String: update to 4.06.1 2018-06-22 22:01:48 +00:00
bruno
dfd561d3ef Protocol environment: rm Array 2018-06-22 22:01:48 +00:00
Pierre Chambart
a6807b4d13 Alpha: allow injecting a contract as bootstrap 2018-06-22 23:41:02 +02:00
Benjamin Canou
7de19f9cc0 Alpha,RPCs: run_code makes a dummy origination instead of taking a random contract from the wallet 2018-06-22 23:41:02 +02:00
Benjamin Canou
2b123349dc Michelson: fix error serialization 2018-06-22 18:03:52 +02:00
Benjamin Canou
76970ffe4d Client: fix check signature command 2018-06-22 14:18:08 +00:00
Benjamin Canou
e77edb7964 Michelson: bytes are now comparable 2018-06-22 14:18:08 +00:00
Benjamin Canou
af7a64123f Michelson: minor error message fix in typechecker 2018-06-22 14:18:08 +00:00
Benjamin Canou
29a33aedd3 Client: refactor data hashing and signing commands 2018-06-22 14:18:08 +00:00
Benjamin Canou
7b5e029537 Michelson: prepend 0x05 to PACKed data 2018-06-22 14:18:08 +00:00
Benjamin Canou
710998caf4 Michelson: add SHA256 and SHA512 2018-06-22 14:18:08 +00:00
Benjamin Canou
b17a44d7eb Michelson: BLAKE2B now takes bytes 2018-06-22 14:18:08 +00:00
Benjamin Canou
197b29b040 Michelson: add PACK and UNPACK 2018-06-22 14:18:08 +00:00
Benjamin Canou
5fe6bd9a54 Proto: add raw_hashes.mli to introduces new hashes in Michelson 2018-06-22 14:18:08 +00:00
Benjamin Canou
70f4236d91 Michelson: BLAKE2B and CHECK_SIGNATURE now operate on bytes 2018-06-22 14:18:08 +00:00
Benjamin Canou
96f6ef1c78 Michelson: s/H/BLAKE2B/ 2018-06-22 14:18:08 +00:00
Benjamin Canou
c3f4aa1454 Michelson: new bytes type 2018-06-22 14:18:08 +00:00
Benjamin Canou
45d8fd11ae Michelson: use new Micheline Bytes case for optimized representation 2018-06-22 14:18:08 +00:00
Benjamin Canou
0279f86e77 Micheline: 0x.. constants are now of a new Bytes case 2018-06-22 14:18:08 +00:00
Benjamin Canou
1ccfe6aed9 Michelson: remove confusing MANAGER instruction 2018-06-22 14:18:08 +00:00
Benjamin Canou
3d602424d1 Michelson: fix example in doc and add an antipattern (suggested by @tomjack) 2018-06-22 14:18:08 +00:00
Benjamin Canou
15c8c7af86 Michelson, docs: various fixes 2018-06-22 14:18:08 +00:00
Benjamin Canou
377f3e1e44 Michelson: change semantics of SOURCE and add SENDER 2018-06-22 14:18:08 +00:00
Alain Mebsout
bc88ede900 Michelson: FAIL as a macro 2018-06-22 14:18:08 +00:00
Alain Mebsout
871a86e32d Michelson: instruction FAILWITH which takes one element on the stack 2018-06-22 14:18:08 +00:00
Vincent Bernardoff
5e8e6347e2 Signer/Socket: fix some glitches 2018-06-22 15:37:20 +02:00
Benjamin Canou
357a4827e8 Client: allow custom headers when calling the remote signer 2018-06-21 18:09:28 +02:00
Vincent Bernardoff
5e0822eb22 Client/Alpha: program -> script 2018-06-21 01:07:38 +02:00
Vincent Bernardoff
404774e091 Signer/Ledger: log Ledger APDUs on debug 2018-06-21 00:57:06 +02:00
Benjamin Canou
a57c1edec1 Client: minor cosmetic change 2018-06-21 00:24:18 +02:00
Fabrice Le Fessant
89c018f31b Client: don't try to generate vanity keys with wrong first letter 2018-06-21 00:23:48 +02:00
Vincent Bernardoff
7e4a0f3368 Client: add forget address command 2018-06-20 23:57:16 +02:00
Vincent Bernardoff
4248738866 Client: substitute -force with --force 2018-06-20 16:59:20 +00:00
Benjamin Canou
a1a89753e5 Alpha: fix encoding for combined operation and receipt 2018-06-20 15:24:03 +02:00
Vincent Bernardoff
4e4d96dae1 Client: remove tags 2018-06-20 10:50:01 +02:00
Vincent Bernardoff
b022a605b4 Client: identity -> address 2018-06-19 16:16:14 +02:00
Pierre Chambart
47039ba9d1 Shell: fix merge problem in test 2018-06-19 12:15:27 +00:00
Pierre Chambart
8370b8fd69 Shell: Simplify early failure in case of locator incompatible with the checkpoint 2018-06-19 12:15:27 +00:00
Pierre Chambart
a7ef80fa34 Shell: Time error printing with more details 2018-06-19 12:15:27 +00:00
Pierre Chambart
2aeba212a7 Shell: Quick and dirty allowance of time shift
The right solution being to wait for the messages to be valid.
2018-06-19 12:15:27 +00:00
Pierre Chambart
663c4e223e Shell: Fill "..." for checkpoint options 2018-06-19 12:15:27 +00:00
Grégoire Henry
fc0af4a55f Shell: add option --checkpoint to tezos-node run 2018-06-19 12:15:27 +00:00
Grégoire Henry
c16129a02d Shell: early detection of branches that forks before the checkpoint. 2018-06-19 12:15:27 +00:00
Grégoire Henry
6170ae2246 Shell: early detection of incompatible new heads and branches. 2018-06-19 12:15:27 +00:00
Grégoire Henry
96dd65e36d Shell: early detection of incompatible injected blocks 2018-06-19 12:15:27 +00:00
Grégoire Henry
a08d6b8cd9 Shell: update the checkpoint when updating the head
The new checkpoint is the current `last_allowed_fork_level` of the new
head.

When updating the checkpoint the shell tags as invalid all blocks with
a level strictly higher to the new checkpoint that are inconstant with
it. And it removes from the disk all the block with a level lower or
equal to the new checkpoint that do not belongs to the current
chain. Though, the shell removes nothing from the disk when the
current head is below the current checkpoint: this will allow to
configure an expected checkpoint when bootstraping a node.

The first patch is very conservative and only detects new incompatible
blocks when they are stored on disk (i.e. after the validation).
Fiture patches try to detect earlier such incompatible block.
2018-06-19 12:15:27 +00:00
Grégoire Henry
535616e21e Shell: add error for blocks inconsistent with the checkpoint 2018-06-19 12:15:27 +00:00
Grégoire Henry
d552c611c5 Shell: allow to store the current checkpoint of a chain
Currently initialized with the chain genesis.
2018-06-19 12:15:27 +00:00
Grégoire Henry
d02892b810 Shell: store the last allowed fork level 2018-06-19 12:15:27 +00:00
Grégoire Henry
a43ee47ee1 Shell: add a mli for validation errors 2018-06-19 12:15:27 +00:00
Grégoire Henry
b1d70d576c Shell: stricter fitness check on block injection 2018-06-19 12:15:27 +00:00
Grégoire Henry
ccad901f33 Shell: fix test network creation 2018-06-19 12:15:27 +00:00
Grégoire Henry
a0a2d6b004 Shell: filter out future block 2018-06-19 12:15:27 +00:00
Lý Kim Quyên
9d655696da Alpha: add missing balance updates in operation receipts 2018-06-19 06:12:44 +02:00
Grégoire Henry
3860d689d7 Opam: fix dependencies for tezos-signer-backends 2018-06-19 04:39:39 +02:00
Grégoire Henry
2fbd125511 Alpha: rename baker/endorser command: launch -> run 2018-06-19 03:16:42 +02:00
Grégoire Henry
ee2a126f3e Alpha: even simpler endorser 2018-06-19 03:11:17 +02:00
Benjamin Canou
c55a462233 Endorser: trust the node to choose the head 2018-06-19 03:06:21 +02:00
Benjamin Canou
6682f05ec9 Baker: do not compare Lwt threads 2018-06-19 03:06:21 +02:00
Benjamin Canou
fdc6bf6b44 Baker, Endorser, exit on lost connection to node 2018-06-19 03:06:21 +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
Benjamin Canou
a09f2cc53e Alpha: drop old tests 2018-06-19 03:06:21 +02:00
Grégoire Henry
ec6db686d9 Alpha: remove block from endorsements 2018-06-19 03:06:21 +02:00
Galfour
392f6cec46 Tests: fix double_endorsement tests 2018-06-19 03:06:21 +02:00
Marco Stronati
b5c275c5fa Alpha: reintroduce duplicate endorsement error 2018-06-19 03:06:21 +02:00
Grégoire Henry
1ab9a7a72c Alpha: remove slots from endorsements 2018-06-19 03:06:21 +02:00
Benjamin Canou
41707f58d8 Baker: do not generate empty endorsements 2018-06-19 03:06:21 +02:00
Benjamin Canou
7500743a4d Baker: record max level at each block, not each nonce revelation 2018-06-19 03:06:21 +02:00
Benjamin Canou
93a72ca28d Baker: avoid infinite sleep to the past 2018-06-19 03:06:21 +02:00
Vincent Botbol
cf36510431 Docker: update docker configuration and fix wallet names 2018-06-19 03:06:21 +02:00
MBourgoin
4c65317681 Alpha/Baker: Use state_module to avoid double baking 2018-06-19 03:06:21 +02:00
MBourgoin
7d0c526644 Alpha/Endorser: Refactor State Module 2018-06-19 03:06:21 +02:00
Raphaël Proust
8b73e812ac Alpha/Baker: load protocol constants lazily
This avoids the baker refusing to start when the protocol alpha is not
yet activated.
2018-06-19 03:06:21 +02:00
Vincent Botbol
0fb25db95b Alpha/Baker: add quota checks and fee sorted manager operations inclusion + quick fix in simulator 2018-06-19 03:06:21 +02:00
Vincent Botbol
ea9b3ae68c Baker: add client-side validation 2018-06-19 03:06:21 +02:00
Vincent Botbol
0512ff55ce Baking: split daemons into 3 different binaries 2018-06-19 03:06:21 +02:00
Vincent Botbol
efee9df1c7 Baking: fix baking daemon error when run on genesis 2018-06-19 03:06:21 +02:00
Raphaël Proust
cb64c85d00 Alpha/Baker: keeping future slot for each delegate 2018-06-19 03:06:21 +02:00
MBourgoin
1d1bd2f7d1 Alpha/Endorser: less RPC calls 2018-06-19 03:06:21 +02:00
MBourgoin
669b1b02e7 Alpha/Endorser: Log timeout errors 2018-06-19 03:06:21 +02:00
MBourgoin
b9d97a7a94 Alpha/Endorser: typos 2018-06-19 03:06:21 +02:00
Raphaël Proust
ac20391c62 Alpha/daemons: some factorisation 2018-06-19 03:06:21 +02:00
Raphaël Proust
f221e21444 Alpha/Baker: keeping future slot for each delegate 2018-06-19 03:06:21 +02:00
Raphaël Proust
470a1e91f1 Alpha/Endorser: minor æsthetics 2018-06-19 03:06:21 +02:00
Raphaël Proust
a78eabda37 Alpha/Baker: Remember delegates 2018-06-19 03:06:21 +02:00
Raphaël Proust
3e71d21713 Alpha/Baker: better naming for error management 2018-06-19 03:06:21 +02:00
Raphaël Proust
99f3b8446c Alpha/Baker: more client messages 2018-06-19 03:06:21 +02:00
Raphaël Proust
41a6c7f9b5 Alpha/Baker: clean up timeouts in main loop 2018-06-19 03:06:21 +02:00
Raphaël Proust
46de116fe7 Alpha/baker: wait for first block instead of error 2018-06-19 03:06:21 +02:00
Raphaël Proust
34aeaadb73 Alpha/Baker: major æsthetics
- decompose long functions into small sub-functions
- add comments
- factor some code
- polish out some unecessary bits and bobs
2018-06-19 03:06:21 +02:00
Raphaël Proust
397d011ed9 Alpha/endorser: one upcoming endorsment per key 2018-06-19 03:06:21 +02:00
Raphaël Proust
97fe3f5ca9 Alpha/Endorser: clean-up state after endorsment
Remove endorsment slot once it is used. This avoids repeated injection
of the same endorsment operation.
2018-06-19 03:06:21 +02:00
Raphaël Proust
b0e9e44673 Alpha/Endorser: wait for first block 2018-06-19 03:06:21 +02:00
Raphaël Proust
f4cadd37a5 Alpha/endorser: send client messages on success 2018-06-19 03:06:21 +02:00
Raphaël Proust
a63584ad63 Alpha/endorser: minor simplifications and cosmetics 2018-06-19 03:06:21 +02:00
Raphaël Proust
28abac0fb9 Alpha/endorser: bugfix
The `max_past` parameter, supposed to stop endorsing of blocks that are
too old, compared absolute times rather than relative times.
Specifically, it would check whether the block timestamp or the current
time was more recent than 110 seconds after epoch.

The new version checks whether the difference between the block
timestamp and the current time is greater than 110seconds.
2018-06-19 03:06:21 +02:00
Raphaël Proust
ac06ccf935 Alpha/Endorser: bugfix
When removing old endorsments from the wallet (to avoid it growing),
only old endorsments were kept, or no endorsments at all were kept.

In addition, that function relied on the endorsments being sorted by
level.
2018-06-19 03:06:21 +02:00
Raphaël Proust
16ea7da81d client base: spacing 2018-06-19 03:06:21 +02:00
Vincent Botbol
cbcc808abc rebase modifications 2018-06-19 03:06:21 +02:00
MBourgoin
f63b96dbd8 Baker: re-add endorsement delay 2018-06-19 03:06:21 +02:00
Pietro
c98fba3eef alpha-baker: rename lib_baking -> lib_delegate 2018-06-19 03:06:21 +02:00
MBourgoin
589096680a Baker: fix cherry-picking 2018-06-19 03:06:21 +02:00
Pietro
9d4be9caba alpha-baker: Rename client_baking -> delegate 2018-06-19 03:06:21 +02:00
Vincent Botbol
5a3492ea8b Baker: typos & refactoring 2018-06-19 03:06:21 +02:00
Mathias
a5bb58e146 Client/Endorser: use 'Data_encoding.assoc Raw_level.encoding' 2018-06-19 03:06:21 +02:00
Mathias
fcd29a36f3 Client/Endorser: remove endorsing scheduler 2018-06-19 03:06:21 +02:00
Vincent Botbol
852acc4710 Baking/Test: fix ci 2018-06-19 03:06:21 +02:00
Mathias
d82c811bdd Client/Endorser: remove older endorsement from wallet 2018-06-19 03:06:21 +02:00
Mathias
c4549650b5 Client/Baking: use wallet lock 2018-06-19 03:06:21 +02:00
Mathias
c0a47a5b6f Client/Endorser: check blocks timestamps 2018-06-19 03:06:21 +02:00
Mathias
8e40873a51 Client/Endorser: simpler state 2018-06-19 03:06:21 +02:00
Mathias
d33568464a Client/Endorser: simpler state with lock 2018-06-19 03:06:21 +02:00
Mathias
abc7b7338c Client: add method with_lock to wallet 2018-06-19 03:06:21 +02:00
Marco Stronati
c46e731031 Alpha: fix bug where seed would stay the same if no nonces were revealed 2018-06-19 02:57:35 +02:00
Marco Stronati
46d053fdb3 Alpha: add Seed_repr.deterministic_seed 2018-06-19 02:57:35 +02:00
Marco Stronati
0ad4f8f6e6 Alpha: Seed_repr.initial_seeds n generates n seeds rather than n+1 2018-06-19 02:57:35 +02:00
Grégoire Henry
9f1c703991 Alpha: fix snapshot removal 2018-06-18 23:53:48 +00:00
Marco Stronati
7473e48d98 Tests: add more tests for seed_nonce_revelation operation 2018-06-19 01:26:20 +02:00
Marco Stronati
b2a09d3edc Tests: add Op.seed_nonce_revelation 2018-06-19 01:26:20 +02:00
Marco Stronati
dde6addbfb Tests: add Context.{get_seed,get_seed_nonce_hash} 2018-06-19 01:24:54 +02:00
Marco Stronati
eeb7c6ff5e Alpha: add rpc to get seed of a cycle of a block 2018-06-19 01:13:58 +02:00
Marco Stronati
125e5ce95f Alpha: fixed small regression on nonce revelations 2018-06-19 00:56:37 +02:00
Grégoire Henry
67566c271c Shell: forced upgrades 2018-06-18 15:58:00 +02:00
Benjamin Canou
94f9230d20 Client, RPCs: do not sign transfer simulations 2018-06-17 23:43:27 +02:00
Benjamin Canou
79ab86b076 Client: repair gas cost estimation 2018-06-17 02:01:34 +02:00
Benjamin Canou
2976353636 Client: more caching of public keys 2018-06-17 00:07:58 +02:00
Benjamin Canou
66c9caedd6 Client: cache public keys to limit queries to remote/hardware signers 2018-06-16 21:12:53 +02:00
Benjamin Canou
25948e423d Client: homogenize signer descriptions 2018-06-16 19:59:37 +02:00
Benjamin Canou
6df91cd015 Client: display tz1/2/3 after adding a secret key 2018-06-16 18:24:04 +02:00
Benjamin Canou
f6f8ed163d Client: more verbose messages for ledger commands 2018-06-16 18:20:32 +02:00
Vincent Bernardoff
fcec030d51 Client: fix sandbox tezos-signer script 2018-06-16 16:26:19 +02:00
Vincent Bernardoff
00d197830f Signers: add ledger scheme 2018-06-16 16:26:19 +02:00
Vincent Bernardoff
8bc9695ad0 Client: add {sk,pk}_uri_param 2018-06-16 16:26:19 +02:00
Vincent Bernardoff
4b2e88f97c Signature: export of_secp256k1 and of_ed25519 2018-06-16 16:26:19 +02:00
Benjamin Canou
820723f8d0 Fix indentation 2018-06-16 14:54:28 +02:00
Benjamin Canou
457fee326e Alpha: allow serialization of failed manager operations 2018-06-15 17:26:20 +02:00
Pierre Boutillier
fd2ac89cb4 http(s) remote signer returns the list of authorized keys when authentification is required 2018-06-15 15:21:19 +00:00
Pierre Boutillier
6b2d730a4e More unused variables in roll tests 2018-06-15 09:30:58 +00:00
Pierre Chambart
df214489b7 Alpha: remove some unused variable in test 2018-06-15 09:30:58 +00:00
Pierre Chambart
b5a6f2f03c Alpha: some more roll tests after the fix 2018-06-15 09:30:58 +00:00
Pierre Chambart
c64698be09 Alpha: fix the doulble roll bug 2018-06-15 09:30:58 +00:00
Pierre Chambart
89f73cceb9 Alpha: test roll numbers 2018-06-15 09:30:58 +00:00
Pierre Chambart
9e6d59d72b Alpha: Failing test for deactivation 2018-06-15 09:30:58 +00:00
Pierre Chambart
ca2c1971ca Alpha: Test this error 2018-06-14 23:20:16 +00:00
Pierre Chambart
f178e3625c Alpha: Add an error that tells which delegate didn't pay its fees 2018-06-14 23:20:16 +00:00
Grégoire Henry
f615459200 Shell/RPC: /chains/<id>/mempool new returned parsed operations 2018-06-14 22:57:04 +00:00
Grégoire Henry
c2517a0432 Shell: minor renaming 2018-06-14 22:57:04 +00:00
Benjamin Canou
7ad44a9af3 Signer: support plain HTTP (no S) and a few cosmetic fixes 2018-06-14 18:22:51 +02:00
Benjamin Canou
0bb12b0655 Signer: magic-byte restriction 2018-06-14 18:22:51 +02:00
Benjamin Canou
347a552396 Signer: add authorized keys mechanism 2018-06-14 18:22:51 +02:00
Benjamin Canou
a8b2ab325e Alpha: do not catch runtime exceptions 2018-06-14 18:09:32 +02:00
Alain Mebsout
ec648f5397 Micheline: more compact encoding of annotations 2018-06-14 18:09:32 +02:00
Alain Mebsout
1fccffb61c Michelson: keep field annotations in SET_CADR, MAP_CADR macros 2018-06-14 18:09:32 +02:00
Alain Mebsout
040fa2a075 Michelson: special annotations %@ and @% 2018-06-14 18:09:32 +02:00
Alain Mebsout
1b67e538d8 Michelson, Proto: show execution trace on failure also
When doing calling `trace code`, e.g. with option `--trace-stack` in
the client.
2018-06-14 18:09:32 +02:00
Alain Mebsout
eb5837943f Michelson: propagate variable annotations inside pairs in stack type
Also check that tyoe annotated constants are correct, but don't produce
annotated constants when unparsing.
2018-06-14 18:09:32 +02:00
Alain Mebsout
fcd9b61084 Michelson: annotations must start with _a-zA-Z or be empty
Empty annotations are used to mean no annotation, or as a wildcard when
destructing pairs for instance.
2018-06-14 18:09:32 +02:00
Alain Mebsout
6dacd8f6a5 Michelson: Force annotations of the same kind to be grouped 2018-06-14 18:09:32 +02:00
Alain Mebsout
1748f370fc Michelson: Remove binding annotations
Use RENAME in code blocks instead.
2018-06-14 18:09:32 +02:00
Alain Mebsout
9993553a59 Michelson: Propagate annotations in execution trace
Fixes #179
2018-06-14 18:09:32 +02:00
Alain Mebsout
703a12f681 Michelson: new (nop) opcodes CAST and RENAME
Removes RENAME macro
2018-06-14 18:09:32 +02:00
Alain Mebsout
e8329b1fc3 Michelson: do not infer pair field names and fail when fields differ 2018-06-14 18:09:32 +02:00
Alain Mebsout
821c6255dc Michelson: annotation fixes to match the spec 2018-06-14 18:09:32 +02:00
Alain Mebsout
382e06cf32 Michelson: more robust checking of type alias annotations 2018-06-14 18:09:32 +02:00
Alain Mebsout
96e317f9d3 Michelson: allow type annotations on PUSH-like instructions 2018-06-14 18:09:32 +02:00
Alain Mebsout
ff284cc0c0 Michelson: field annotations on PAIR macros 2018-06-14 18:09:32 +02:00
Alain Mebsout
b51dae6de5 Michelson: Better macros for PAIR/UNPAIR 2018-06-14 18:09:32 +02:00
Alain Mebsout
435d135aa0 Michelson: annotations for variable bindings with $
Also move annotation specific code to own module.
2018-06-14 18:09:32 +02:00
Alain Mebsout
68f86fe274 Fix: indentation 2018-06-14 18:09:32 +02:00
Alain Mebsout
cf8532e8f7 Michelson, Test: fix some test contracts with new annotation syntax 2018-06-14 18:09:32 +02:00
Alain Mebsout
ae6a97708e Michelson: disable typechecking of field names through annotations
This is not compatible with the inferring mechanism for annotations in
types.
2018-06-14 18:09:32 +02:00
Alain Mebsout
c8dd939849 Michelson: annotations for set_cadr, map_cadr 2018-06-14 18:09:32 +02:00
Alain Mebsout
82022acabb Michelson: allow . in annotations 2018-06-14 18:09:32 +02:00
Alain Mebsout
371ce150ce Michelson: generate default annotation for field accesses
If stack is [ @storage (pair int int) ] then stack after CAR:
CAR; [ @storage.car int ]
2018-06-14 18:09:32 +02:00
Alain Mebsout
263b2d717f Michelson: allow annotations on CMP... macros 2018-06-14 18:09:32 +02:00
Alain Mebsout
68dcae1a11 Michelson: RENAME macro 2018-06-14 18:09:32 +02:00
Alain Mebsout
22bdea00c2 Michelson: check (field) annotations of field accesses 2018-06-14 18:09:32 +02:00
Alain Mebsout
5431752887 Michelson: better syntax for fields of pair types 2018-06-14 18:09:32 +02:00
Alain Mebsout
53b88e4dbb Michelson: different types of annotations 2018-06-14 18:09:32 +02:00
Benjamin Canou
3140f6e51d Michelson: allow multiple annotations 2018-06-14 18:09:32 +02:00
Grégoire Henry
a51c912722 Alpha: forbids trivial double baking evidence 2018-06-14 15:57:27 +00:00
Galfour
3dce646b18 Tests: more tests for double baking 2018-06-14 15:57:27 +00:00
Marco Stronati
53ec17c8b4 Tests/helpers: rework block to ease arbitrary signatures 2018-06-14 15:57:27 +00:00
Pietro
4d3a01974c [proto]: Remove commas from decimal repr of tezos 2018-06-14 15:48:25 +00:00
Marco Stronati
e1702e0db2 Alpha: add check_size when parsing Z values 2018-06-14 02:27:41 +02:00
Marco Stronati
0d136b0bd7 Environment: add Data_encoding.check_size 2018-06-14 02:27:41 +02:00
Marco Stronati
8f5aecfc01 Alpha: change space_storage from int64 to Z.t 2018-06-14 02:27:41 +02:00
Marco Stronati
12b7a49f96 Alpha: change counters from int32 to Z.t 2018-06-14 02:25:12 +02:00
Vincent Bernardoff
9d18f7846d Crypto: disable P256 signing 2018-06-13 23:59:16 +00:00
Vincent Bernardoff
21823483a5 Crypto: add P256 cryptography 2018-06-13 23:59:16 +00:00
Pierre Chambart
e9c42123cb Alpha: Simplify a few things after removing dead code. 2018-06-14 00:37:32 +02:00
Pierre Chambart
233273dff8 Alpha: Remove more dead code with in storage functor.
There are no instances of Carbonated values that have not a variable
lenght. And I don't forsee this changing anythime soon.
2018-06-14 00:37:32 +02:00
Pierre Chambart
ff428fe680 Alpha: Change carbonated data storage path
The len key was key ^ "$" which was problematic for potential name
collision with real keys. It is now key @ ["len"] and key @ ["data"]
2018-06-14 00:37:32 +02:00
Pierre Chambart
31b9c251f6 Alpha: Carbonated functor: fix read after update problems 2018-06-14 00:37:32 +02:00