canontech / staking-payouts

CLI to make staking payout transactions for Substrate FRAME-based chains
Apache License 2.0
43 stars 14 forks source link

unpaid payouts not found for previous epochs (on kusama) #81

Closed ama31337 closed 2 years ago

ama31337 commented 2 years ago

I've some epochs unpaid atm on Kusama validator and script was able to make payout only for last one, but not for the previous: 2,855, 2,859-2,861 still unpaid (need to proceed them manually)

emostov commented 2 years ago

If there are eras prior to the last claimed epoch you need to manually tell the CLI to check. For example, if you add -e 8, it will check the 8 eras prior to the last claimed era. You can read more about the available options here: https://github.com/canontech/staking-payouts#options

As an example scenario: if you call the collect every 3 days and you want to guarantee every era for the last 3 days is checked on Kusama you could set -e 12, to make sure it checks at least 12 eras prior to the last collected. (We know each era is 6 hours, so 72hours / 6hours = 12era).

For context, I could make the CLI check the last 84 eras by default, but this would take an incredibly long time and increases the chance of a websocket interruption while its running.

Feel free to reopen if this does not answer your question.