-
Notifications
You must be signed in to change notification settings - Fork 891
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
Added configurable block reward and recipient for IBFT2 #1132
Conversation
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.
LGTM
consensus/ibft/src/main/java/org/hyperledger/besu/consensus/ibft/IbftProtocolSchedule.java
Outdated
Show resolved
Hide resolved
consensus/ibft/src/main/java/org/hyperledger/besu/consensus/ibft/IbftProtocolSchedule.java
Outdated
Show resolved
Hide resolved
.../java/org/hyperledger/besu/tests/acceptance/ibft2/Ibft2BlockRewardPaymentAcceptanceTest.java
Show resolved
Hide resolved
config/src/main/java/org/hyperledger/besu/config/IbftConfigOptions.java
Outdated
Show resolved
Hide resolved
@@ -10,7 +10,8 @@ | |||
"ibft2": { | |||
"blockperiodseconds": 1, | |||
"epochlength": 30000, | |||
"requesttimeoutseconds": 5 | |||
"requesttimeoutseconds": 5, | |||
"blockrewardeth": 5 |
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.
Rather the default was left as 0 as what most people will use and just modify the blockreward for the block reward AT
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.
Yeah agreed - but it's REALLY hard to do - given no existing tests prove that the validator's not paid, I figured this was ok?
Signed-off-by: Trent Mohay <trent.mohay@consensys.net>
config/src/test/java/org/hyperledger/besu/config/JsonGenesisConfigOptionsTest.java
Show resolved
Hide resolved
Signed-off-by: Trent Mohay <trent.mohay@consensys.net>
Allow IBFT2 to deliver block rewards (of a configurable value), and transaction fees to a configured address.