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
Data will be fetched for each point listed in [`config.json`](./config.json). Typically, those points needs to be the _last point_ of target epochs. Currently, it contains points for the PreProd network.
23
-
24
-
## Fetching Data
25
-
26
-
The Haskell node only has a memory of up to few thousand blocks. So, in order to fetch states corresponding to historical data, fetching must be done while the cardano-node is synchronizing.
27
-
28
-
For the current configuration, that means removing all immutable chunks after `03149`, starting your node from there will have it synchronize through the required points. As soon as a point gets available, data will be fetched and the script will move on to the next point. Once your Haskell node is syncing and Ogmios up-and-running as well, quick run:
29
-
30
-
```console
31
-
yarn fetch
32
-
```
33
-
34
-
This should terminate once all the points have been processed.
13
+
If you haven't done so, you will also need [the necessary `data`](../data). For an epoch `n`, you need data corresponding to `n`, `n+1` and `n+3` in order to generate the test snapshots. So make sure that you have fetched all the necessary informations beforehand.
35
14
36
15
## Generating snapshots
37
16
38
17
Once the data is available, it needs some post-processing to create proper JSON snapshots to be used as conformance tests. The post-processing ensures that data is properly formatted in a canonical way, and combine raw data fetched from the node in a more meaningful way.
39
18
40
-
Simply run:
19
+
Simply run (replacing `NETWORK` with the target network):
41
20
42
21
```console
43
-
yarn generate-all
22
+
yarn generate-all NETWORK
44
23
```
45
24
46
25
> [!TIP]
47
26
>
48
27
> You can also generate snapshots for a single epoch:
0 commit comments