Benjamin Canou
6cf03d0f6b
Client: select commands depending on the network
2018-06-30 15:01:22 +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
8ff740c8ee
Alpha/Baker: ensure that anonymous operations do not overflow in the block
2018-06-29 20:37:06 +02: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
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
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
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
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
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
Grégoire Henry
bb288ac64b
Alpha: more verbose endorser
2018-06-23 04:31:41 +02:00
Alain Mebsout
bc88ede900
Michelson: FAIL as a macro
2018-06-22 14:18:08 +00: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
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
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