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
This software is made to test Mithril Client nodes in isolated situations where no real Mithril Aggregator can be reached. It serves a static set of data that can be loaded at start time.
4
+
5
+
## Fake API
6
+
7
+
For now, the following routes are implemented:
8
+
9
+
* GET /aggregator/epoch-settings
10
+
* GET /aggregator/certificates
11
+
* GET /aggregator/certificate/:hash
12
+
* GET /aggregator/artifact/snapshots
13
+
* GET /aggregator/artifact/snapshot/:digest
14
+
* GET /aggregator/artifact/mithril-stake-distributions/
15
+
* GET /aggregator/artifact/mithril-stake-distribution/:hash
16
+
17
+
## Data fixtures
18
+
19
+
It is either possible to use default data provided with the binary or to load a static set of data at start up using the `-d` or `--data-dir` option. When set the given directory is scanned for the following files:
20
+
21
+
* certificates.json
22
+
* snapshots.json
23
+
* mithril-stake-distributions.json
24
+
25
+
For each file, the identifiers of the corresponding artifacts are extracted and the following files are read:
26
+
27
+
* certificate-{hash}.json
28
+
* snapshot-{digest}.json
29
+
* mithril-stake-distribution-{hash}.json
30
+
31
+
If a file is missing or incomplete, the software will stop with an error message.
32
+
33
+
## Command line synopsis
34
+
35
+
Usage: `mithril-fake-aggregator [OPTIONS]`
36
+
37
+
Options:
38
+
39
+
```
40
+
-d, --data-directory <DATA_DIRECTORY> Directory where the response files are located
0 commit comments