-
Notifications
You must be signed in to change notification settings - Fork 4
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 batcher bug #96
fix batcher bug #96
Conversation
How did you test? |
I haven't tested yet, op-batcher has run out of gas now. DL also met this problem, the fix worked for him. This bug is introduced in this PR. |
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.
The description should be updated as a simple cache mechanism is introduced to check if an address is a contract or not.
op-batcher/batcher/driver.go
Outdated
|
||
} | ||
// Don't set GasLimit when inbox is contract so that later on `EstimateGas` will be called |
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.
I feel the comments here should be updated to
// Don't set GasLimit when inbox is contract so that later on `EstimateGas` will be called | |
// Set GasLimit as intrinstic gas if the inbox is EOA, otherwise | |
// Leave GasLimit unset when inbox is contract so that later on `EstimateGas` will be called |
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.
Done in 7aab5ae.
It's causing all batcher transactions to fail.
Upstream also has a tiny bug here when estimating blob tx gas limit when increasing gas price, but this bug here is the primary reason all batcher txes failed for the new devnet.