Commit Graph

2179 Commits

Author SHA1 Message Date
Vincent Botbol
d93d2a9b65
Alpha/Baker: dissociate overflowing ops from the set of wished operations 2018-10-08 12:26:46 +02:00
Alex Stokes
8490e01b07 Fix typo in compiler.ml 2018-10-06 06:15:55 +00:00
Benjamin Canou
0feb5bd07a
Signer: fix animals test 2018-10-04 17:13:29 +02:00
Benjamin Canou
3eeea7c1af
Client: cleanup some output 2018-10-04 15:28:23 +02:00
Vincent Bernardoff
4fa4ab0b8f
Ledger: add support for animal names in URI 2018-10-04 15:28:22 +02:00
Arthur B
0b7155ca91
Cuteness: method for naming hashes, produces 137e9 possibilities 2018-10-04 15:28:20 +02:00
Vincent Bernardoff
4bb28cd285
Ledger: implement authorized-path APDU 2018-10-03 14:08:39 +02:00
Vincent Bernardoff
92715a005b
Ledger: implement git-commit APDU 2018-10-03 14:08:37 +02:00
Vincent Botbol
31d207f52e
Baker: improve logging 2018-10-02 15:27:12 +02:00
Vincent Botbol
a68124dfc0
Encoding: handle invalid utf8 sequences 2018-10-01 15:31:41 +02:00
Vincent Botbol
d5e0c1c51f
Clic: fix indentation 2018-09-26 11:14:37 +02:00
Benjamin Canou
5167f7b298
Clic: minor internal types cleanup 2018-09-25 10:45:20 +02:00
Pierre Chambart
09bf4e4819
Store and Context: open the database with the nometasync flag
This mode maintains the coherency of the database in case of crash,
but can drop the last commits. This is not a problem for us since
every data is recoverable.
2018-09-24 20:29:58 +02:00
Pierre Chambart
bfeff69794 Vendors/lmdb: Change the default sync flags
The default was unsafe but fast, we change that to the safe version.
2018-09-24 18:19:22 +00:00
Sebastien Mondet
6d5afcf10e
Clarify "Unexpected sequence number" warning 2018-09-24 20:15:25 +02:00
Vincent Bernardoff
8d817d62c8
Signer: initialize logging
This adds the ability to govern the logging behaviour of the signer
with environment variables.
2018-09-19 12:33:32 +02:00
Benjamin Canou
968afcf682
Client: remove Betanet disclaimer 2018-09-17 15:53:10 +02:00
Benjamin Canou
7051325ba4
P2p, client: fix network protocol version negociation 2018-09-17 13:03:28 +02:00
Arthur B
7a8fadb2f6
Crypto: add PVSS support 2018-08-31 15:46:57 +02:00
Arthur B
7206ccd560
Indentation fixes 2018-08-31 15:46:56 +02:00
Fabrice Le Fessant
a10932b577
Add a -counter argument to 'transfer AMOUNT from SRC to DST'
Useful when you have issued a transaction on a node, and the node
seems to be disconnected. You can use this option to issue the same
transaction on another node with the same counter.
2018-08-31 14:05:55 +02:00
Pietro Abate
c87b6c533d
Prevalidator: Add doc string to prevalidator/ion. 2018-08-30 16:24:17 +02:00
Thomas Blanc
952dacac82 Adding Block.Header module to State, letting Chain_traversal.live_blocks use that module 2018-08-29 18:26:40 +00:00
Thomas Blanc
c723869f65 Getting the block_header out of contents in Store (no change in State interface) 2018-08-29 18:26:40 +00:00
Vincent Botbol
ebaa3e49f6
Alpha/Baker: more refactoring 2018-08-29 11:20:27 +02:00
Vincent Botbol
dfdfdaf079
Alpha/Baker: add a max_waiting_time parameter in the command 2018-08-29 11:20:26 +02:00
Vincent Botbol
3a49a0e7c4
Alpha/Daemons: add documentation and refactor parts 2018-08-29 11:20:25 +02:00
Vincent Botbol
bfe625e27b
Alpha/Daemons: improve logging 2018-08-29 11:20:23 +02:00
Vincent Botbol
9d20295a2b
Alpha/Daemons: enforce waiting for a bootstrapped node before starting daemons 2018-08-29 11:20:22 +02:00
Vincent Botbol
1cabf7763f
Alpha/Baker: remove priority slots, add mechanism to await operations
Alpha/Baker: select only consistent endorsements before choosing to wait
2018-08-29 11:20:22 +02:00
Vincent Botbol
b99d3be1cc
Alpha/Endorser: use Client_baking_scheduling function and add log 2018-08-29 11:20:21 +02:00
Vincent Botbol
98120cf068
Alpha/Accuser: update logging messages 2018-08-29 11:20:20 +02:00
Vincent Botbol
2e410c7ae9
Alpha/Baker: add and update logging tags 2018-08-29 11:20:20 +02:00
Vincent Botbol
b5b1e5651a
Alpha/Protocol: export Period.to_seconds 2018-08-29 11:20:18 +02:00
Vincent Botbol
9f5a521188
Shell: preapply should hash instead of commit 2018-08-29 11:03:56 +02:00
Grégoire Henry
8e8fae23fd P2p: fix for file-descriptor leak on incoming connections 2018-08-28 17:25:58 +00:00
Vincent Bernardoff
17ff89186e
Logging: refactoring/code deduplication 2018-08-28 16:09:00 +02:00
Fabrice Le Fessant
2804c932f0
Fix wrongly marked revelations
Revelations are sometimes marked as skipped or backtracked, but they are
actually still applied. This fix keeps the Applied tag for Reveal operations.
2018-08-28 14:37:55 +02:00
Pierre Boutillier
b5fc7f582e
Update license in opam files 2018-08-22 14:50:13 +02:00
Vincent Bernardoff
1b4a40bf76
Crypto: adapt code to new bip39, pbkdf 2018-08-20 11:56:37 +02:00
Lý Kim Quyên
db740cee41
Add two more test for transfer zero and change comments 2018-08-20 11:47:53 +02:00
Nicolas Pinto
68e849315b
Client: rename 'passphrase' into 'password' when encrypting keys 2018-08-20 11:38:05 +02:00
Grégoire Henry
e642cb621d
Alpha/Baker: add "--context" to "tezos-client bake for"
This allows to bake by using the local context instead of relying on
the RPC 'preapply'.
2018-08-20 11:33:25 +02:00
Grégoire Henry
935132e2bb
Alpha/Baker: move code 2018-08-20 11:33:25 +02:00
Grégoire Henry
2f6896a6f3
Alpha/Client: add --mempool to command bake for <delegate>. 2018-08-20 11:33:24 +02:00
Vincent Botbol
bb82702fd6
Alpha/Baker: rename threshold into fee_threshold and include it in the baker's state 2018-08-20 11:33:23 +02:00
Grégoire Henry
618dc5757c
Alpha_002/Baker: fix local validation order.
Only the evidence should be validated after the endorsements. All
other anonymous operations should be validated before the manager
operations (e.g. activation depends on the 'global counter').
2018-08-20 11:33:23 +02:00
Vincent Botbol
b8e78c4229
Baker: make anonymous operations applied after endorsements 2018-08-20 11:33:22 +02:00
Vincent Botbol
7f07c6badb
Baker: ensure shell prevalidation is given a correct list of operations 2018-08-20 11:33:21 +02:00
Pietro Abate
70afae4a81
P2p: /network/identity -> /network/self 2018-08-20 11:17:18 +02:00
bruno
9d1bf10b94
P2p: add network/identity RPC 2018-08-20 11:17:17 +02:00
bruno
bc37fde73e
Base: add peer id (base58 string) in identity.json 2018-08-20 11:17:16 +02:00
Vincent Botbol
94451e1e62
Fix style 2018-08-20 11:04:55 +02:00
Vincent Botbol
e5b2927310
Shell/Prevalidation: add the streaming of the newly validated operations 2018-08-20 11:04:54 +02:00
Vincent Botbol
fee4e684c1
Shell/Services: add a RPC for monitoring validated operations 2018-08-20 11:04:51 +02:00
Scott Scites
14d58b584f
Client: fix lunch typos 2018-08-20 11:00:36 +02:00
Benjamin Canou
b3493f2957
Scripts: fix sandbox signer 2018-08-20 10:53:25 +02:00
Benjamin Canou
96c36f1698
Add high watermark checking for blocks and endorsements 2018-08-20 10:53:22 +02:00
Vincent Botbol
6cfd00e705
Fix typos 2018-08-09 17:08:21 +02:00
Vincent Botbol
694c48f94a
Alpha/Tests: update activation test description 2018-08-09 17:08:18 +02:00
Vincent Botbol
eb35f9967d
Alpha/Tests: test suite for combined operations 2018-08-09 17:08:17 +02:00
Vincent Botbol
ac7f4da1ab
Alpha: add utility list conversion to operation application results 2018-08-09 17:08:16 +02:00
Vincent Botbol
6a4c4f83b4
Alpha/Tests: add operation tickets to the incremental context 2018-08-09 17:08:09 +02:00
Vincent Botbol
f473fd4106
Alpha/Tests: add multiple operations creation 2018-08-03 15:56:15 +02:00
Vincent Botbol
1a75bbf95c
Alpha/Tests: fix non-increasing level when finalizing an incremental block 2018-08-03 12:40:22 +02:00
Vincent Botbol
c1f36a5ad2 Alpha/Accuser: ensure that double endorsements denunciations happens only when endorsement are not from the same branch 2018-08-02 16:45:09 +00:00
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