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
Copy file name to clipboardExpand all lines: README.md
+22-3Lines changed: 22 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,17 +32,36 @@ For the fastest execution `RPC` with unlimited number of requests should be used
32
32
```bash
33
33
yarn
34
34
````
35
-
- Run the calculating staking rewards process
35
+
- Calculate initial nodes data
36
36
```bash
37
-
yarn process-staking-rewards
37
+
yarn prepare-initial-data
38
+
```
39
+
- Calculate staking rewards
40
+
```bash
41
+
yarn calculate-staking-rewards
38
42
```
43
+
Note that forthe second part of process to succeed `reward-distribution-data.json` for a given reward epoch should be presentin the [FSP Rewards repository](https://github.com/flare-foundation/fsp-rewards/tree/main).
44
+
39
45
You can also run it with optional parameters from [file](./src/processProviders.ts) (e.g. `yarn process-staking-rewards -b 8 -f 111`), which will override parameters setin the configuration file.
40
46
41
47
For each run output of the process is in folder `generated-files/reward-epochs-<REWARD_EPOCH>`.
42
48
43
49
### Verifying the results
44
-
To verify the official results posted in this repository one needs to update its configuration file with values from the `configFileData` object of a `data.json` file for some reward epoch.
50
+
To verify the official results posted in this repository one needs to update configuration file with values from the `configFileData` object of a `data.json` file for a chosen reward epoch.
51
+
45
52
To verify the results for the reward epochs from 126 to 243 inclusive one needs to use branch `version-1`.
53
+
To verify the results for the reward epochs from 244 to 264 inclusive one needs to use branch `version-2`.
54
+
For both branches one should run the following process
55
+
```bash
56
+
yarn process-staking-rewards
57
+
```
58
+
59
+
To replicate minimal conditions info files for reward epochs from 251 to 264 inclusive one should use branch `min-conditions-info` and run the following processes
60
+
```bash
61
+
yarn prepare-initial-data
62
+
yarn calculate-staking-rewards
63
+
```
64
+
46
65
47
66
### Data for distributing rewards
48
67
Rewards will be distributed every four reward epochs, which means that every 14 days reward amounts from the past four reward epochs will be summed. This is achieved by running the process
0 commit comments