-
Notifications
You must be signed in to change notification settings - Fork 814
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
Frequent reorgs on parachain #7262
Comments
Which collator are you using? The lookahead collator? Generally forks are following the relay chain forks, as you already have assessed correctly. So, for each relay chain fork, there exists one parachain fork. Did you generally run into any problems or just observed forks? |
Yes, we are using lookahead collator. I’ve noticed that reorgs occur approximately every 7 blocks, which is problematic for our use case. Since our application relies on minting NFTs, a reorg invalidates previously returned IDs, leading to significant issues. While waiting for finalization could mitigate this, the delay is often too long for our app's requirements. I also observed that when a block is discarded during a reorg, a new block is created and finalized afterward. Is it possible to configure the collator to minimize reorgs? For example, could we delay block collation to allow more time for relay chain consensus, given that consensus seems to be reached relatively quickly? |
Are you using the @skunert we should probably expose the option to build on older relay chain parents, which would make it possible to almost prevent forks to interfere with the block production. |
We aren't using omni node, is omni node now supporting evm? Is there some alternative approach? |
Currently not, we are working on strategies to reduce fork-frequency. But at this time there is not much we can do about it. If there is a relay chain fork, parachains will build on both forks. As far as omni-node support for EVM goes, it depends. On the runtime side you can have pallets that execute smart contracts, no problem. However we don't have native support for ethereum RPCs. For that you would need to use an external adapter. |
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
Since enabling Asynchronous Backing with runtime upgrade and updating dependencies to v1.11.0, we started experiencing frequent reorgs on the Neuroweb parachain.
Collators produce a block, right after that, they drop it and collate a new one on its spot.
It seems reorgs coincide with forks on the relay chain.
Here is an example of collator logs when reorg happens:
Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: