Skip to content
This repository has been archived by the owner on Feb 24, 2025. It is now read-only.

Explorer does not return logs related to epoch rewards #1011

Open
jmrossy opened this issue Jan 2, 2024 · 0 comments
Open

Explorer does not return logs related to epoch rewards #1011

jmrossy opened this issue Jan 2, 2024 · 0 comments

Comments

@jmrossy
Copy link

jmrossy commented Jan 2, 2024

I noticed that logs from the Elections and Validators contracts related to epoch rewards aren't returned by blockscout. Querying for the logs via a JSON RPC provider (e.g. Forno or Infura) does return them but that's much less efficient for querying with a large block range. My guess is that epoch rewards are triggered by the Validators' celo geth clients in some special way that's confusing the explorer's indexing. FWIW, CeloScan has this same issue and I've reported it to them as well.

Here's one of the events I'm looking for:
https://github.com/celo-org/celo-monorepo/blob/master/packages/protocol/contracts/governance/Election.sol#L145

Same problem for this Validator contract event:
https://github.com/celo-org/celo-monorepo/blob/master/packages/protocol/contracts/governance/Validators.sol#L149

And an example query:
https://explorer.celo.org/mainnet/api?module=logs&action=getLogs&fromBlock=0&toBlock=latest&address=0x8D6677192144292870907E3Fa8A5527fE55A7ff6&topic0=0x91ba34d62474c14d6c623cd322f4256666c7a45b7fdaa3378e009d39dfcec2a7

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant