tezos-reward-distributor-organization / tezos-reward-distributor

Tezos Reward Distributor (TRD): A reward distribution software for tezos bakers.
https://tezos-reward-distributor-organization.github.io/tezos-reward-distributor/
GNU General Public License v3.0
87 stars 51 forks source link

pRPC getting baking_rights for a cycle causes "429 Too Many Requests " #617

Closed vkresch closed 8 months ago

vkresch commented 1 year ago

There is currently a 429 Too Many Requests error when I am trying to query the baking rights of a specific baker via public RPC for a past cycle.

E.g.: https://mainnet-tezos.giganode.io/chains/main/blocks/head/helpers/baking_rights?cycle=515&delegate=tz1NRGxXV9h6SdNaZLcgmjuLx3hyy2f8YoGN&max_round=2

I can query the baking rights specifically for a block via: https://mainnet-tezos.giganode.io/chains/main/blocks/2632823/helpers/baking_rights?delegate=tz1NRGxXV9h6SdNaZLcgmjuLx3hyy2f8YoGN&max_round=2

but i want to get all the baking rights for a cycle. I do not want to iterate over every block to check this. Is there currently a workaround for RPC? tzkt and tzstats are working fine in that regard ^^. How do they solve this issue? How should we address this issue? Thanks in advance!

I discovered this issue during test tests refactoring of the rpc reward provider api https://github.com/tezos-reward-distributor-organization/tezos-reward-distributor/pull/610. I reported the issue to the tezos devs here.

rvermootenct commented 1 year ago

Is this still an issue?

vkresch commented 8 months ago

Outdated issue since the endpoints are deprecated.