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

header not found error in Scroll network upon block reorgs and multicall #1111

Open
swan-of-bodom opened this issue Sep 19, 2024 · 0 comments

Comments

@swan-of-bodom
Copy link
Contributor

swan-of-bodom commented Sep 19, 2024

We keep getting this error on Scroll on realtime sync. We noticed it always happens when historical sync is complete and we're on realtime and there is a block reorg and we perform a multicall.

This shouldn't happen as the same mutlicall is also performed during historical syncs. Also it is not specific to this one multicall, we noticed that sometimes it's this function call and other times it is a different mutlicall in the app too.

"dependencies": {
    "@ponder/core": "^0.5.23",
    "@ponder/utils": "^0.1.8",
    "abitype": "^0.10.3",
    "evm-maths": "^7.0.0",
    "hono": "^4.6.1",
    "viem": "^1.21.4"
  },
12:28:21 AM INFO  realtime   Synced block 9412704 from 'scroll'                                                                                                                                                                                                                                                                                                                             
12:28:24 AM INFO  realtime   Synced block 9412705 from 'scroll'                                                                                                                                                                                                                                                                                                                             
12:28:26 AM INFO  realtime   Synced block 9412706 from 'scroll'                                                                                                                                                                                                                                                                                                                             
12:28:30 AM INFO  realtime   Synced block 9412707 from 'scroll'                                                                                                                                                                                                                                                                                                                             
12:28:34 AM INFO  realtime   Synced block 9412708 from 'scroll'                                                                                                                                                                                                                                                                                                                             
12:28:36 AM INFO  realtime   Synced block 9412709 from 'scroll'                                                                                                                                                                                                                                                                                                                             
12:28:40 AM INFO  realtime   Synced block 9412710 from 'scroll'                                                                                                                                                                                                                                                                                                                             
12:28:42 AM INFO  realtime   Synced block 9412711 from 'scroll'                                                                                                                                                                                                                                                                                                                             
12:28:45 AM INFO  realtime   Synced block 9412712 from 'scroll'                                                                                                                                                                                                                                                                                                                             
12:28:48 AM INFO  realtime   Synced block 9412713 from 'scroll'                                                                                                                                                                                                                                                                                                                             
12:28:50 AM INFO  realtime   Synced block 9412714 from 'scroll'                                                                                                                                                                                                                                                                                                                             
12:28:54 AM INFO  realtime   Synced block 9412715 from 'scroll'                                                                                                                                                                                                                                                                                                                             
12:28:56 AM INFO  realtime   Synced block 9412716 from 'scroll'                                                                                                                                                                                                                                                                                                                             
12:29:01 AM INFO  realtime   Synced block 9412717 from 'scroll'                                                                                                                                                                                                                                                                                                                             
12:29:04 AM INFO  realtime   Synced block 9412718 from 'scroll'                                                                                                                                                                                                                                                                                                                             
12:29:07 AM INFO  realtime   Synced block 9412719 from 'scroll'                                                                                                                                                                                                                                                                                                                             
12:29:09 AM INFO  realtime   Synced block 9412720 from 'scroll'                                                                                                                                                                                                                                                                                                                             
12:29:13 AM INFO  realtime   Synced block 9412721 from 'scroll'                                                                                                                                                                                                                                                              
12:29:14 AM INFO  realtime   Synced block 9412722 from 'scroll'                                                                                                                                                                                                                                                              
12:29:15 AM WARN  realtime   Detected forked 'scroll' block at height 9412721                                                                                                                                                                                                                                                
12:29:15 AM WARN  realtime   Reconciled 1-block reorg on 'scroll' with common ancestor block 9412720                                                                                                                                                                                                                         
12:29:17 AM INFO  realtime   Synced block 9412721 from 'scroll'                                                                                                                                                                                                                                                              
12:29:17 AM INFO  realtime   Synced block 9412722 from 'scroll'                                                                                                                                                                                                                                                              
12:29:18 AM INFO  realtime   Synced block 9412723 from 'scroll'                                                                                                                                                                                                                                                              
Getting 16 tokens from DefiLlama on scroll                                                                                                                                                                                                                                                                                   
Defillama missing tokens: 5                                                                                                                                                                                                                                                                                                  
Getting 5 tokens from Coingecko on scroll                                                                                                                                                                                                                                                                                    
12:29:19 AM WARN  realtime   Detected forked 'scroll' block at height 9412721                                                                                                                                                                                                                                                
12:29:19 AM WARN  realtime   Reconciled 1-block reorg on 'scroll' with common ancestor block 9412720                                                                                                                                                                                                                         
Coingecko missing tokens: 0                                                                                                                                                                                                                                                                                                  
12:29:20 AM WARN  sync       Failed 'eth_call' RPC request                                                                                                                                                                                                                                                                   
12:29:20 AM ERROR indexing   Error while processing TokenPricesUpdate:block event at chainId=534352, block=9412723                                                                                                                                                                                                           
ContractFunctionExecutionError: Missing or invalid parameters.                                                                                                                                                                                                                                                               
Double check you have provided the correct parameters.                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                                             
URL: https://scroll-mainnet.g.alchemy.com/v2/XNnyyvMxcIwO6m1g3cXY-UB4SdHj3d1b                                                                                                                 
Request body: {"method":"eth_call","params":[{"data":"0x82ad56cb00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000001afbc62f221be90d82e0f4cfeef011451942d6e100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000418160ddd000000000000000000000000000000000000000000000000000000000000000000000000000000001afbc62f221be90d82e0f4cfeef011451942d6e10000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000040902f1ac00000000000000000000000000000000000000000000000
000000000","to":"0xca11bde05977b3631167028862be2a173976ca11"},"0x8fa073"]}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                            
Raw Call Arguments:                                                                            
  to:    0xca11bde05977b3631167028862be2a173976ca11                                            
  data:  0x82ad56cb00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000001afbc62f221be90d82e0f4cfeef011451942d6e100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000418160ddd000000000000000000000000000000000000000000000000000000000000000000000000000000001afbc62f221be90d82e0f4cfeef011451942d6e10000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000040902f1ac00000000000000000000000000000000000000000000000000000000
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
Contract Call:                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
  address:   0xca11bde05977b3631167028862be2a173976ca11                                                                                                                                       
  function:  aggregate3((address target, bool allowFailure, bytes callData)[])                                                                                                                                                               
  args:                ([{"allowFailure":true,"callData":"0x18160ddd","target":"0x1afbc62f221be90d82e0f4cfeef011451942d6e1"},{"allowFailure":true,"callData":"0x0902f1ac","target":"0x1afbc62f221be90d82e0f4cfeef011451942d6e1"}])                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                                                             
Docs: https://viem.sh/docs/contract/readContract.html                                                                                                                                                                                                                                                                                                                                                                                                                                      
Details: header not found                                                                                                                                     
Version: [email protected]                                                                                                  
    at updatePairPrice (/impremax/scroll/impermax-v2-backend-test-wrench/src/bundle.ts:251:35)                                                                                                                                               
    at /impremax/scroll/impermax-v2-backend-test-wrench/src/bundle.ts:82:3                                                                                    
  249 |                                                                                                                                                                                                                                      
  250 |   // Supply and reserves of the stakedLP's uniswapv2 pair                                                                                                                                                                            
> 251 |   const [totalSupply, reserves] = await client.multicall({                                                    
      |                                   ^                                                                           
  252 |     contracts: [                                                                                              
  253 |       { ...contract, functionName: "totalSupply" },                                                           
  254 |       { ...contract, functionName: "getReserves" },                                                           
caused by: CallExecutionError: Missing or invalid parameters.                                                         
Double check you have provided the correct parameters.    
@swan-of-bodom swan-of-bodom changed the title header not found error in Scroll network upon block reorgs header not found error in Scroll network upon block reorgs and multicall Sep 19, 2024
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

1 participant