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
{{ message }}
This repository was archived by the owner on Aug 30, 2022. It is now read-only.
check( ct - prod.last_claim_time > microseconds(useconds_per_day), "already claimed rewards within past day" );
this condition is a source of constant headache because one cannot establish a simple cron job to run every 24 hours. Please make it >= microseconds(useconds_per_day) - 300000000, so that it gives 300 seconds room for possible delays or microforks.
The rewards calculation does not rely on the fact that it's more than 24 hours. it will work fine for shorter periods too.
The text was updated successfully, but these errors were encountered:
deckb
transferred this issue from EOSIO/eosio.contracts
Apr 21, 2021
producer_pay.cpp
, line 79:this condition is a source of constant headache because one cannot establish a simple cron job to run every 24 hours. Please make it
>= microseconds(useconds_per_day) - 300000000
, so that it gives 300 seconds room for possible delays or microforks.The rewards calculation does not rely on the fact that it's more than 24 hours. it will work fine for shorter periods too.
The text was updated successfully, but these errors were encountered: