genesis-contracts
genesis-contracts copied to clipboard
PIP36: Replay Failed StateSyncs
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)'
@DhairyaSethi
- Please reference PIP and forum post PR description
- why not use the existing IStateReceiver interface?