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
Describe the bug
TRD tries to compute on payment cycle, but get stuck on this cycle if baker was not active (no delegators, no rewards) for this cycle.
To Reproduce
Bootstrap a new baker address
Start TRD
TRD should be stuck at payment cycle (current - 3 - X)
Expected behavior
Payment computations should proceed to next cycle in this case.
Screenshots
2022-09-02 13:31:46,773 - producer - ERROR - [try_to_pay] API provider error Max sequent calls number exceeded (256)
2022-09-02 13:31:46,774 - producer - ERROR - tzkt error at payment producer loop: 'Max sequent calls number exceeded (256)', will try again.
It seems TZKT return 204 in this case (no delegators, no rewards) for this cycle. This is processed as a request error, and looping indefinitely on this cycle as a result.
The text was updated successfully, but these errors were encountered:
Describe the bug
TRD tries to compute on
payment cycle
, but get stuck on this cycle if baker was not active (no delegators, no rewards) for this cycle.To Reproduce
Expected behavior
Payment computations should proceed to next cycle in this case.
Screenshots
Environment
python src/main.py --network GHOSTNET --base_directory /var/run/tezos/trdconfig --reward_data_provider tzkt --signer_endpoint http://127.0.0.1:6732 --node_endpoint <endpoint> --docker --dry_run --payment_offset 20 --release_override 0
Additional context
I have pinpointed issue to the TZKT api response NO_CONTENT treatment.
https://github.com/tezos-reward-distributor-organization/tezos-reward-distributor/blob/master/src/tzkt/tzkt_api.py#L89
https://github.com/tezos-reward-distributor-organization/tezos-reward-distributor/blob/master/src/tzkt/tzkt_api.py#L194
It seems TZKT return 204 in this case (no delegators, no rewards) for this cycle. This is processed as a request error, and looping indefinitely on this cycle as a result.
The text was updated successfully, but these errors were encountered: