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

PIP36: Replay Failed StateSyncs #74

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

DhairyaSethi
Copy link

@DhairyaSethi DhairyaSethi commented Apr 24, 2024

Adds ability to replay failed state syncs.
https://github.com/maticnetwork/Polygon-Improvement-Proposals/blob/main/PIPs/PIP-36.md

Also updates solidity-rlp library from v2.0.1 to v2.0.8

Additional Notes:
Fetch past state syncs efficiently using cryo

Script
export ETH_RPC_URL=<<polygon rpc url>>
cryo logs \
    --label failedStateSyncs \
    --subdirs allLogs \
    --blocks 50.5M: \
    --contract 0x0000000000000000000000000000000000001001 \
    --event-signature 'StateCommitted(uint256,bool)'

@simonDos
Copy link
Member

simonDos commented May 8, 2024

@DhairyaSethi

  • Please reference PIP and forum post PR description
  • why not use the existing IStateReceiver interface?

@DhairyaSethi
Copy link
Author

  • why not use the existing IStateReceiver interface?

reused on 916fa56

@DhairyaSethi DhairyaSethi changed the title Replay Failed StateSyncs PIP36: Replay Failed StateSyncs May 8, 2024
@DhairyaSethi DhairyaSethi requested a review from dev1644 May 9, 2024 02:28
contracts/StateReceiver.sol Show resolved Hide resolved
contracts/StateReceiver.sol Show resolved Hide resolved
contracts/StateReceiver.sol Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

3 participants