chopsticks: Timeout during new blocks creation
I run a simple script - https://github.com/paritytech/ahm-dryrun/pull/17/files#diff-dcdc3e0b3362edb8fec2a51d3fa51f8fb8af8f70247e06d9887fa934834c9122
It check the state of the migration and keeps creating new blocks on Relay Chain and Asset Hub. However, I keep getting RPC timeouts from both remote endpoint (usually after 2-4 blocks, once got to 13) and local network (usually after 5-7 blocks).
Such small number of created blocks before the failure looks suspicious. However, the script is simple and I don’t see a reason why it’s failing, other than https://github.com/paritytech/polkadot-sdk/issues/8035 Though, await dev.newBlock() waits for a new block creation before sending subsequent requests…
Some details: Relay Chain withdraws around 700 accounts within one block, splits it into 2 XCM Transact calls and sends it to Asset Hub. Asset Hub processes XCMs one-by-one and sends confirmations to Relay Chain. Once relay receives all the confirmation it proceeds with the next batch of the accounts.
Do you have an idea how to avoid RPC timeouts?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (6 by maintainers)
Now the all thing makes sense, it’s your WsProvider connected to chopsticks which is timing out. Obviously because it will take chopsticks a long long time to go through entire state.
made 1.0.4 release with rpc-timeout config
what RPC node are you using? if is local one, what’s the CPU usage?
can you have
LOG_LEVEL=traceand share logs?maybe you need to enable some logs on the RPC node side and open an issue to polkadot-sdk. it is not really Chopsticks issue when RPC times out.