threshold-network / merkle-distribution

Threshold Network rewards generation and distribution
https://threshold.network
1 stars 6 forks source link

Fix? A comprehensive guide? #145

Closed sammy007 closed 5 months ago

sammy007 commented 6 months ago

There must be a way to check if accounting goes seamless and busywork is getting accepted.

// April 1st -> Now()

./rewards.sh --rewards-start-date 1711911600 --rewards-end-date 1712433494 --etherscan-token <SKIPPED>

..
Retrieving client release tags...
// Where is v2.0.0?
Found v2.0.0-m7 v2.0.0-m6 v2.0.0-m5 v2.0.0-m4 v2.0.0-m3 v2.0.0-m2 v2.0.0-m1 tags
Fetching peers data...
yarn run v1.22.22

Error: ENOENT: no such file or directory, open './rewards-details/1711911600-1712490718.json'
    at Object.writeFileSync (node:fs:2342:20)
    at calculateRewards (/Users/me/code/merkle-distribution/src/scripts/tbtcv2-rewards/rewards.ts:474:6)
    at processTicksAndRejections (node:internal/process/task_queues:95:5) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: './rewards-details/1711911600-1712490718.json'
}
error Command failed with exit code 1.

How do I filter by operator?

We are at 2.0.0 and the regexp seems broken and not taking it into account. Please make a comprehensive guide of how a node operator can check if he is getting rewarded. Node op is not the guy who can read minds.