genesis-contracts icon indicating copy to clipboard operation
genesis-contracts copied to clipboard

PIP36: Replay Failed StateSyncs

Open DhairyaSethi opened this issue 1 year ago • 2 comments

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 avatar Apr 24 '24 10:04 DhairyaSethi

@DhairyaSethi

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

simonDos avatar May 08 '24 12:05 simonDos

  • why not use the existing IStateReceiver interface?

reused on 916fa56

DhairyaSethi avatar May 08 '24 12:05 DhairyaSethi