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
Toggleable discard for failed revertible transaction hashes #81
Conversation
…. Add support for dropping revertible transaction hashes in sbundle. Update logic to prevent naked transactions from being discarded since only bundles and sbundles currently support specifying revertible transaction hashes
…ons on error, remove unnecessary from commit tx function, add additional unit test that includes bundle when it contains revertible tx that we wish to discard
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.
Deferring decision on the conventions to @dvush and @avalonche since they frequent this codebase more than I do
@@ -1944,7 +1949,10 @@ func containsHash(arr []common.Hash, match common.Hash) bool { | |||
|
|||
// Compute the adjusted gas price for a whole bundle | |||
// Done by calculating all gas spent, adding transfers to the coinbase, and then dividing by gas used | |||
func (w *worker) computeBundleGas(env *environment, bundle types.MevBundle, state *state.StateDB, gasPool *core.GasPool, pendingTxs map[common.Address]types.Transactions, currentTxCount int) (simulatedBundle, error) { | |||
func (w *worker) computeBundleGas( |
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.
can consider restructuring these args into a struct
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.
looks correct to me
re: styling - I think breaking lines looks better but no strong opinion this or that way
e8a3fe1
to
4bd0c15
Compare
4bd0c15
to
a1b5e6a
Compare
📝 Summary
Current behavior of bundles is that:
This PR makes it so when users specify reverting transaction hashes in their request, the builder discards the transaction(s) on error
Changes
📚 References
CONTRIBUTING.md