-
Notifications
You must be signed in to change notification settings - Fork 852
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
Make block txs selection max time aware of PoA transitions #6676
Make block txs selection max time aware of PoA transitions #6676
Conversation
a53c184
to
b6cd237
Compare
b6cd237
to
df163ff
Compare
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.
Wiring runtime values into MiningParameters is making me think twice, but seems there is a precedent for it already.
Also the way the block period is set on MiningParameters but I don't feel too strongly about it.
Other than that, PR looks good :)
.../src/main/java/org/hyperledger/besu/consensus/clique/blockcreation/CliqueBlockScheduler.java
Outdated
Show resolved
Hide resolved
8da2a03
to
a7b5b2f
Compare
@@ -83,6 +84,14 @@ private static MiningBeneficiaryCalculator miningBeneficiaryCalculator( | |||
forksSchedule.getFork(blockNum).getValue().getMiningBeneficiary().orElse(localAddress); | |||
} | |||
|
|||
private void setBlockPeriodSeconds( |
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.
Moving this into the controller same way you did with Clique would be nicer
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, please re-review
66c1576
to
216c405
Compare
Signed-off-by: Fabio Di Fabio <[email protected]>
Signed-off-by: Fabio Di Fabio <[email protected]>
Signed-off-by: Fabio Di Fabio <[email protected]>
Signed-off-by: Fabio Di Fabio <[email protected]>
216c405
to
48af465
Compare
…er#6676) Signed-off-by: Fabio Di Fabio <[email protected]> Signed-off-by: MASDXI <[email protected]>
…er#6676) Signed-off-by: Fabio Di Fabio <[email protected]>
Thanks for sending a pull request! Have you done the following?
doc-change-required
label to this PR if updates are required.Most advanced CI tests are deferred until PR approval, but you could:
./gradlew build
./gradlew acceptanceTest
./gradlew integrationTest
./gradlew ethereum:referenceTests:referenceTests
PR description
As a follow up of #6596 this PR makes the block txs selection max time, correctly aware of the PoA transitions, while before only the block period from the genesis was used, while that value can change according to the transitions defined in the genesis file. To support that the
genesisBlockPeriodSeconds
has been renamed toblockPeriodSeconds
and the configuration is now modifiable at runtime, according to the transitions schedule.Fixed Issue(s)