-
Notifications
You must be signed in to change notification settings - Fork 844
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
feat: add fixed basefee options #6562
Conversation
|
Thanks for raising this PR @suraneti, I think it's generally looking good so far. I've got a few general comments which I've put below, and I thought I would create a branch in my own repo (see https://github.com/matthew1001/besu/tree/fixed-basefee) with some suggested refactoring for you to take a look at. I'm happy to submit my commit to your branch if you're OK with that, or for you just to use it as an example of suggested changes and you push your own commits, just let me know what you prefer.
|
@matthew1001, thank you for providing detailed guidelines. I would be grateful if you could submit the code to my branch. I will try to create the unit-test files following your instructions. |
I've just pushed my commit to your branch @suraneti - let me know how you get on with it. |
@matthew1001, thank you for your commit. I just pushed my latest commit. Could you please review it when you have time? |
I'll take a look at your updated branch in the next day or two @suraneti |
@matthew1001 Great, thanks! I appreciate you taking the time. |
@suraneti the PR is looking good, a few new comments:
|
6ebade3
to
594f246
Compare
@matthew1001, thanks for your guidance and commit! Commit sha: [7ee3288](https://github.com/hyperledger/besu/pull/6562/commits/7ee32888eb35d395b18783827446e2fd5800b671), Author: ahamlat, Committer: Suraneti Rodsuwan; Expected "ahamlat [[email protected]](mailto:[email protected])", but got "Ameziane H [[email protected]](mailto:[email protected])".
Commit sha: [03061f7](https://github.com/hyperledger/besu/pull/6562/commits/03061f7a9eab62e2b372fb098004df81a40312f7), Author: Danno Ferrin, Committer: Suraneti Rodsuwan; Expected "Danno Ferrin [[email protected]](mailto:[email protected])", but got "Danno Ferrin [[email protected]](mailto:[email protected])". My apologies for the conflicts caused by the recent rebase. |
It looks like you've got a lot of changes in your branch now that aren't related to the PR itself. It looks like you didn't end up with a clean rebase on top of Besu |
@matthew1001 I might have made a mistake, I followed the DCO bot guideline and resolved the conflicts manually.
Can you guide me on how to resolve an issue? |
Signed-off-by: Suraneti Rodsuwan <[email protected]>
Signed-off-by: Matthew Whitehead <[email protected]>
Signed-off-by: Suraneti Rodsuwan <[email protected]>
Signed-off-by: Suraneti Rodsuwan <[email protected]>
Signed-off-by: Suraneti Rodsuwan <[email protected]>
Signed-off-by: Suraneti Rodsuwan <[email protected]>
Signed-off-by: Suraneti Rodsuwan <[email protected]>
Signed-off-by: Suraneti Rodsuwan <[email protected]>
Signed-off-by: Suraneti Rodsuwan <[email protected]>
Signed-off-by: Suraneti Rodsuwan <[email protected]>
Signed-off-by: Suraneti Rodsuwan <[email protected]>
Signed-off-by: Suraneti Rodsuwan <[email protected]>
Signed-off-by: Suraneti Rodsuwan <[email protected]>
Signed-off-by: Suraneti Rodsuwan <[email protected]>
Signed-off-by: Suraneti Rodsuwan <[email protected]>
Signed-off-by: Suraneti Rodsuwan <[email protected]>
Signed-off-by: Suraneti Rodsuwan <[email protected]>
Signed-off-by: Suraneti Rodsuwan <[email protected]>
Signed-off-by: Suraneti Rodsuwan <[email protected]>
Signed-off-by: Suraneti Rodsuwan <[email protected]>
Signed-off-by: Suraneti <[email protected]>
@suraneti - would you mind trying a force-push of your new branch You could then close the new PR https://github.com/hyperledger/besu/pull/6624/files Then I'll do a final review of this PR with the new commit list. |
Signed-off-by: Suraneti <[email protected]>
a92b777
to
49e2d11
Compare
@matthew1001, I have updated this branch. My apologies for the PR issue. Please review when you have time. Many thanks. |
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.
Thanks for all the tidy up with the commits. I think the PR looks good now. There's one small comment I left about the wording in a code-comment, but happy to approve the PR now.
config/src/main/java/org/hyperledger/besu/config/GenesisConfigOptions.java
Show resolved
Hide resolved
Signed-off-by: Suraneti <[email protected]>
What is needed to get this across the line? @matthew1001 @suraneti |
I think it's good to go @non-fungible-nelson but I'll let @suraneti confirm if that's the case as he's been doing the bulk of the development and test on the PR. @suraneti - is there anything left to do on this now? |
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 ok to me. vast majority of the changes in this PR is to wire through the mining params so have opened a ticket to refactor that - but can be done after this as a separate PR
@matthew1001 @non-fungible-nelson @macfarla Thanks so much for following up and providing the feedback. I've confirmed my implementation part has been done. Have a good weekend! |
@suraneti that's great. If you're happy with it, could you update the branch with latest |
@matthew Thanks so much, I've merged the pull request with the latest main branch. |
* feat: add fixed basefee options Signed-off-by: Suraneti Rodsuwan <[email protected]> * Refactor zero base fee to be extension of fixed base fee Signed-off-by: Matthew Whitehead <[email protected]> * feat: use MiningParameters to fixed base fee Signed-off-by: Suraneti Rodsuwan <[email protected]> * feat: add mining parameters arg on protocol schedule builder * feat: add miningParameters on gray glacier and prague Signed-off-by: Suraneti Rodsuwan <[email protected]> * feat: add miningParameters on gray glacier and prague Signed-off-by: Suraneti Rodsuwan <[email protected]> * feat: add miningParameters on paris,shanghai,future,experimental Signed-off-by: Suraneti Rodsuwan <[email protected]> --------- Signed-off-by: Suraneti Rodsuwan <[email protected]> Signed-off-by: Matthew Whitehead <[email protected]> Signed-off-by: Suraneti <[email protected]> Co-authored-by: Matthew Whitehead <[email protected]> Co-authored-by: Sally MacFarlane <[email protected]> Signed-off-by: amsmota <[email protected]>
* feat: add fixed basefee options Signed-off-by: Suraneti Rodsuwan <[email protected]> * Refactor zero base fee to be extension of fixed base fee Signed-off-by: Matthew Whitehead <[email protected]> * feat: use MiningParameters to fixed base fee Signed-off-by: Suraneti Rodsuwan <[email protected]> * feat: add mining parameters arg on protocol schedule builder * feat: add miningParameters on gray glacier and prague Signed-off-by: Suraneti Rodsuwan <[email protected]> * feat: add miningParameters on gray glacier and prague Signed-off-by: Suraneti Rodsuwan <[email protected]> * feat: add miningParameters on paris,shanghai,future,experimental Signed-off-by: Suraneti Rodsuwan <[email protected]> --------- Signed-off-by: Suraneti Rodsuwan <[email protected]> Signed-off-by: Matthew Whitehead <[email protected]> Signed-off-by: Suraneti <[email protected]> Co-authored-by: Matthew Whitehead <[email protected]> Co-authored-by: Sally MacFarlane <[email protected]> Signed-off-by: amsmota <[email protected]>
Hi @matthew1001 and @suraneti. We are hoping to add this to the docs in this PR. Can you please take a look? Do you think It should be documented in other sections |
* feat: add fixed basefee options Signed-off-by: Suraneti Rodsuwan <[email protected]> * Refactor zero base fee to be extension of fixed base fee Signed-off-by: Matthew Whitehead <[email protected]> * feat: use MiningParameters to fixed base fee Signed-off-by: Suraneti Rodsuwan <[email protected]> * feat: add mining parameters arg on protocol schedule builder * feat: add miningParameters on gray glacier and prague Signed-off-by: Suraneti Rodsuwan <[email protected]> * feat: add miningParameters on gray glacier and prague Signed-off-by: Suraneti Rodsuwan <[email protected]> * feat: add miningParameters on paris,shanghai,future,experimental Signed-off-by: Suraneti Rodsuwan <[email protected]> --------- Signed-off-by: Suraneti Rodsuwan <[email protected]> Signed-off-by: Matthew Whitehead <[email protected]> Signed-off-by: Suraneti <[email protected]> Co-authored-by: Matthew Whitehead <[email protected]> Co-authored-by: Sally MacFarlane <[email protected]>
PR description
Add
fixedBaseFee
options to forcedbaseFee
same asgasPrice
value.I'm new to the Java language, please guide any aspects I can further improve or modify.
Fixed Issue(s)
#6335