-
Notifications
You must be signed in to change notification settings - Fork 50
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
fix(executor): Force no multicall on Polygon #1690
base: master
Are you sure you want to change the base?
Conversation
Relayer refund leaves must not be batched via multicall on Polygon. The existing executor implementation will attempt multicall in cases where there are multiple relayer refund leaves, and this imposes a soft deadlock on the executor. This can be recovered by executing one leaf at a time. A better solution is just to override the defaults for Polygon in the dataworker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense - but could we maybe put this logic in constructClients
and expose this override in config
?
After some thought - we're assuming the only info coming from the config is the { |
One clarification here - the requirement for multicall in the Polygon SpokePool is more nuanced than I originally thought. It only reverts if there is a bundled transaction that's not an executeRelayerRefundLeaf() call, so multicall in itself is not inherently problematic on Polygon. I'm not aware of how we could be multicalling executeRelayerRefundLeaf() alongside something else, so the issue today may simply have been stuck transaction weirdness (which has been seen before on Polygon). In general though, I don't see any major problem with skipping multicall on Polygon since the transactions themselves are so cheap anyway.
|
That's a cleaner suggestion; yeah. This can probably be handled in the dataworker config parser. |
I'll merge this in because I've seen stuck transactions again multiple times over the past couple of weeks. |
@james-a-morris Just circling back to this one - I applied the change you suggested 👍 |
Relayer refund leaves must not be batched via multicall on Polygon. The existing executor implementation will attempt multicall in cases where there are multiple relayer refund leaves, and this imposes a soft deadlock on the executor. This can be recovered by executing one leaf at a time. A better solution is just to override the defaults for Polygon in the dataworker.