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
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
Pietro
b89682e441
Build: Jbuilder -> Dune 1.0.1
2018-07-24 19:15:04 +02:00
Benjamin Canou
b76b5367bb
Alpha: use underscores in error ids
2018-07-24 14:56:12 +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
fedf5d66c6
Proto: revert to the dummy hash for alpha
2018-07-21 00:28:48 +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
Benjamin Canou
3ca1fc9509
Michelson: add missing bytes primitives on comparable_ty (thanks @tomjack)
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
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
Grégoire Henry
077b3cd964
Script: add archive_protocol.sh
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_map
s in more places
2018-07-18 21:45:21 +00: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
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
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
ea4e33b0e2
Client: preload encrypted keys when running a daemon (again)
...
This is 370114eb8b
again, sigh.
2018-07-09 13:02:06 +02:00
b
322710c56c
Update wrong licenses
2018-07-03 12:04:24 +02:00
Benjamin Canou
252435d280
Proto Alpha's hash is its actual hash
2018-06-30 18:56:30 +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 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
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
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
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
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
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
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
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
Galfour
cf7de5cc75
Client: argument is now optional with no default in a transfer operation
2018-06-27 21:24:48 +00: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
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
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
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
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