This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 137
Add support for additional block building algorithm #76
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…er than static size from max element of heap
Ruteri
reviewed
Jun 15, 2023
Ruteri
reviewed
Jun 15, 2023
…hiftAndPushByAccountForTx
dvush
reviewed
Jun 20, 2023
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 think this is what we want!
- left some comment
Wazzymandias
force-pushed
the
build-300/improve-block-algo
branch
from
June 21, 2023 22:36
9f740a6
to
1c5300a
Compare
Wazzymandias
changed the title
[WIP] Add support for additional block building algorithm
Add support for additional block building algorithm
Jun 22, 2023
dvush
reviewed
Jun 26, 2023
dvush
reviewed
Jun 26, 2023
Ruteri
reviewed
Jun 27, 2023
Wazzymandias
force-pushed
the
build-300/improve-block-algo
branch
2 times, most recently
from
June 28, 2023 02:18
960e40b
to
5136f70
Compare
… add profit enforcement for transactions
Wazzymandias
force-pushed
the
build-300/improve-block-algo
branch
from
June 28, 2023 05:42
5136f70
to
c9cad3d
Compare
Ruteri
reviewed
Jun 28, 2023
…ce implications of rolling back state on low profit
Ruteri
approved these changes
Jun 28, 2023
dvush
approved these changes
Jun 29, 2023
…eedy buckets algorithm to only reinsert when low profit error occurs. Update TxWithMinerFee to set price and set profit after low profit error to reinsert back into heap
Wazzymandias
force-pushed
the
build-300/improve-block-algo
branch
from
June 29, 2023 21:27
f43740c
to
adaaf14
Compare
avalonche
pushed a commit
that referenced
this pull request
Jul 6, 2023
* Add initial implementation for builder bucketized merging algorithm * Simplify logic and update buckets to initialize from top of heap rather than static size from max element of heap * Add logic to commit transactions when heap is empty * Fix erroneous integer division * Move profit function to TxWithMinerFee pointer receiver, refactor sorting algorithm * Add logic for enforcing profit on bundles and sbundles * Split greedy buckets builder from greedy builder * Add greedy bucket worker * Update tests to support separate greedy buckets builder, add retry logic * Make new multi worker explicit in supported algorithm types, update ShiftAndPushByAccountForTx * Reduce retry count to 1, update signature formatting * Add else statement with panic clause for unsupported order type in algo greedy buckets * Update greedy buckets algorithm to use gas used for transaction on retries * Remove tx profit validation for the scope of this PR due to performance implications of rolling back state on low profit * Update method signatures to algoConf * Move closures to outside function, add low profit error and update greedy buckets algorithm to only reinsert when low profit error occurs. Update TxWithMinerFee to set price and set profit after low profit error to reinsert back into heap
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 Summary
greedy-buckets
greedy
algorithm which simply uses effective gas priceTesting
📚 References
CONTRIBUTING.md