Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Msgscan missed some logs using eth_getLogs #1472

Closed
wuminzhe opened this issue Apr 15, 2024 · 2 comments
Closed

Msgscan missed some logs using eth_getLogs #1472

wuminzhe opened this issue Apr 15, 2024 · 2 comments
Assignees

Comments

@wuminzhe
Copy link
Contributor

wuminzhe commented Apr 15, 2024

The logs indexing task of msgscan missed some logs before adding an extra scan.

code: https://github.com/darwinia-network/pindex/blob/e5521205757278baebd720f972cfc9bffb32f461/lib/tasks/logs.rake#L17

rpc: https://github.com/darwinia-network/pindex/blob/e5521205757278baebd720f972cfc9bffb32f461/config/pindex.yml#L21

@wuminzhe
Copy link
Contributor Author

wuminzhe commented Apr 15, 2024

To mitigate this problem, I added an extra scan a little behind the head. The head here means the latest block number - 6.
code: https://github.com/darwinia-network/pindex/blob/e5521205757278baebd720f972cfc9bffb32f461/lib/tasks/logs.rake#L26C1-L31C10

@boundless-forest boundless-forest self-assigned this Apr 15, 2024
@hackfisher
Copy link
Contributor

duplicate with #1473

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

No branches or pull requests

3 participants