You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help Print this message or the help of the given subcommand(s)
189
+
190
+
Options:
191
+
-h, --help Print help
192
+
```
193
+
194
+
Run 'era list' to list the supported eras embedded in the binary
195
+
196
+
```bash
197
+
./mithril-aggregator era list
198
+
```
188
199
189
-
SUBCOMMANDS:
190
-
bootstrap Genesis certificate bootstrap command
191
-
export Genesis certificate exportcommand
192
-
help Print this message or the help of the given subcommand(s)
193
-
import Genesis certificate import command
200
+
You should see something like
194
201
202
+
```bash
203
+
Supported Eras:
204
+
[
205
+
Thales,
206
+
]
195
207
```
196
208
197
-
Run 'genesis bootstrap' command in release with default configuration, **only in test mode**.
198
-
This allows the Mithril Aggregator node to bootstrap a `Genesis Certificate`. After this operation, the Mithril Aggregator will be able to produce new snapshots and certificates.
209
+
:::tip
210
+
211
+
You can use the `--json` option in order to display results in `JSON` format for the `list` command:
199
212
200
213
```bash
201
-
./mithril-aggregator genesis bootstrap
214
+
./mithril-aggregator era list --json
202
215
```
203
216
204
-
Or with a specific `Genesis Secret Key`, **only in test mode**.
Run 'genesis export' command in release with default configuration.
211
-
This allows the Mithril Aggregator node to export the `Genesis Payload` that needs to be signed (and later reimported) of the `Genesis Certificate`. The signature of the `Genesis Payload` must be done manually with the owner of the `Genesis Secret Key`.
223
+
:::
224
+
225
+
Run 'era generate-tx-datum' to generate the transaction datum file to be stored on the Cardano chain that will provide era markers to the 'cardano-chain' era reader adapter
226
+
227
+
**Case 1**: There is only one supported era in the code, create the datum file with
./mithril-aggregator era generate-tx-datum --current-era-epoch**EPOCH_AT_WHICH_CURRENT_ERA_STARTS** --era-markers-secret-key **YOUR_ERA_ACTIVATION_SECRET_KEY**
215
231
```
216
232
217
-
Run 'genesis import' command in release with default configuration.
218
-
This allows the Mithril Aggregator node to import the signed payload of the `Genesis Certificate` and create it in the store. After this operation, the Mithril Aggregator will be able to produce new snapshots and certificates.
Run 'genesis import' command in release with a custom configuration via env vars
239
+
**Case 2**: There are two supported era in the code, in order to announce the upcoming era (i.e. the activation epoch of this era is not known yet), run the command
./mithril-aggregator era generate-tx-datum --current-era-epoch **EPOCH_AT_WHICH_CURRENT_ERA_STARTS** --era-markers-secret-key **YOUR_ERA_ACTIVATION_SECRET_KEY**
243
+
```
244
+
245
+
**Case 3**: There are two supported era in the code, in order to activate the era switch at a following epoch (i.e. the activation epoch of this era known), run the command
246
+
247
+
```bash
248
+
./mithril-aggregator era generate-tx-datum --current-era-epoch **EPOCH_AT_WHICH_CURRENT_ERA_STARTS** --next-era-epoch **EPOCH_AT_WHICH_NEXT_ERA_STARTS** --era-markers-secret-key **YOUR_ERA_ACTIVATION_SECRET_KEY**
228
249
```
229
250
230
251
:::tip
@@ -238,6 +259,7 @@ If you want to dig deeper, you can get access to several level of logs from the
238
259
239
260
:::
240
261
262
+
241
263
<CompiledBinaries />
242
264
243
265
## Build and run Docker container
@@ -265,6 +287,8 @@ Here are the subcommands available:
265
287
|**genesis export**| Export genesis payload to sign with genesis secret key |
266
288
|**genesis import**| Import genesis signature (payload signed with genesis secret key) and create & import a genesis certificate in the store |
267
289
|**genesis bootstrap**| Bootstrap a genesis certificate (test only usage) |
290
+
|**era list**| List the supported eras |
291
+
|**era generate-tx-datum**| Generate era markers transaction datum to be stored on chain |
268
292
269
293
## Configuration parameters
270
294
@@ -304,6 +328,8 @@ General parameters:
304
328
| `snapshot_bucket_name` | - | - | `SNAPSHOT_BUCKET_NAME` | Name of the bucket where the snapshots are stored | - | `snapshot-bucket` | :heavy_check_mark: | Required if `snapshot_uploader_type` is `gcp`
305
329
|`run_interval`| - | - |`RUN_INTERVAL`| Interval between two runtime cycles in ms | - |`60000`|:heavy_check_mark:|
306
330
|`url_snapshot_manifest`| - | - |`URL_SNAPSHOT_MANIFEST`| Snapshots manifest location | - | Only if `snapshot_store_type` is `gcp`, else it should be `` |:heavy_check_mark:|
331
+
|`era_reader_adapter_type`|`--era-reader-adapter-type`| - |`ERA_READER_ADAPTER_TYPE`| Era reader adapter type that can be `cardano-chain`, `file` or `bootstrap`. |`bootstrap`| - | - |
332
+
|`era_reader_adapter_params`|`--era-reader-adapter-params`| - |`ERA_READER_ADAPTER_PARAMS`| Era reader adapter params that is an optional JSON encoded parameters structure that is expected depending on the `era_reader_adapter_type` parameter | - | - | - |
307
333
308
334
`genesis bootstrap` command:
309
335
@@ -315,10 +341,24 @@ General parameters:
315
341
316
342
| Parameter | Command Line (long) | Command Line (short) | Environment Variable | Description | Default Value | Example | Mandatory |
|`current_era_epoch`|`--current-era-epoch`| - |`CURRENT_ERA_EPOCH`| Epoch at which current era starts. | - | - | - |:heavy_check_mark:|
363
+
|`next_era_epoch`|`--next-era-epoch`| - |`NEXT_ERA_EPOCH`| Epoch at which the next era starts. If not specified and an upcoming era is available, it will announce the next era. If specified, it must be strictly greater than `current-epoch-era`| - | - | - | - |
364
+
|`era_markers_secret_key`|`--era-markers-secret-key`| - |`ERA_MARKERS_SECRET_KEY`| Era Markers Secret Key that is used to verify the authenticity of the era markers on chain. | - | - | - |:heavy_check_mark:|
Copy file name to clipboardExpand all lines: docs/root/manual/developer-docs/nodes/mithril-signer.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -209,3 +209,5 @@ Here is a list of the available parameters:
209
209
|`store_retention_limit`| - | - |`STORE_RETENTION_LIMIT`| Maximum number of records in stores. If not set, no limit is set. | - | - | - |
210
210
|`kes_secret_key_path`| - | - |`KES_SECRET_KEY_PATH`| Path to the `Cardano KES Secret Key` file. Mandatory in `Pool Id Certification Mode` where the owner is verified (experimental, soon to be stable & preferred mode) | - | - | - |
211
211
|`operational_certificate_path`| - | - |`OPERATIONAL_CERTIFICATE_PATH`| Path to the `Cardano Operational Certificate` file. Mandatory in `Pool Id Certification Mode` where the owner is verified (experimental, soon to be stable & preferred mode) | - | - | - |
212
+
|`era_reader_adapter_type`|`--era-reader-adapter-type`| - |`ERA_READER_ADAPTER_TYPE`| Era reader adapter type that can be `cardano-chain`, `file` or `bootstrap`. |`bootstrap`| - | - |
213
+
|`era_reader_adapter_params`|`--era-reader-adapter-params`| - |`ERA_READER_ADAPTER_PARAMS`| Era reader adapter params that is an optional JSON encoded parameters structure that is expected depending on the `era_reader_adapter_type` parameter | - | - | - |
0 commit comments