Skip to content
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

[trivial] Parameterize greedy-buckets price cutoff percent & update bundle profit to coinbase delta #83

Merged
merged 3 commits into from
Jul 6, 2023

Conversation

Wazzymandias
Copy link
Contributor

@Wazzymandias Wazzymandias commented Jul 6, 2023

📝 Summary

  • Add support for --miner.price_cutoff_percent, used when --miner.algotype=greedy-buckets to support dynamic bucket sizes for block building algorithm
    • Example: Setting --miner.price_cutoff_percent to 0 and --miner.algotype=greedy-buckets is comparable to "total profit" block building algorithm, where all transactions are sorted by effective gas price, and then sorted by max profit.

📚 References


@Wazzymandias Wazzymandias requested review from Ruteri, avalonche and dvush and removed request for Ruteri and avalonche July 6, 2023 21:31
@Wazzymandias Wazzymandias changed the title Parameterize greedy-buckets price cutoff percent Parameterize greedy-buckets price cutoff percent & update bundle profit to coinbase delta Jul 6, 2023
@Wazzymandias Wazzymandias changed the title Parameterize greedy-buckets price cutoff percent & update bundle profit to coinbase delta [trivial] Parameterize greedy-buckets price cutoff percent & update bundle profit to coinbase delta Jul 6, 2023
cmd/utils/flags.go Outdated Show resolved Hide resolved
@Wazzymandias Wazzymandias merged commit 9acf640 into main Jul 6, 2023
3 checks passed
@Wazzymandias Wazzymandias deleted the parameter-greedy-buckets-price-cutoff branch July 6, 2023 23:14
avalonche pushed a commit that referenced this pull request Jul 10, 2023
…undle profit to coinbase delta (#83)

* Parameterize greedy-buckets price cutoff percent to support dynamic bucket sizes

* Update profit function to use coinbase difference for bundles instead of total eth

* Update CLI to use default pirce cutoff percent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants