-
Notifications
You must be signed in to change notification settings - Fork 75
[ETCM-44] Treasury block reward distribution #694
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
Conversation
38cbba7
to
ea15d31
Compare
ea15d31
to
787810f
Compare
|
||
val blockchainConfig = Config.blockchains.blockchainConfig | ||
val syncConfig = SyncConfig(Config.config) | ||
class BlockRewardSpec extends AnyFlatSpec with Matchers with ScalaCheckPropertyChecks with MockFactory { | ||
|
||
"Reward Calculation" should "pay to the miner if no ommers included" in new TestSetup { |
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.
"it"?
src/test/scala/io/iohk/ethereum/ledger/LedgerTestingUtils.scala
Outdated
Show resolved
Hide resolved
…for implicit BlockRewardCalculatorWithFullReward
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.
🚀
@@ -45,26 +46,47 @@ class BlockPreparator( | |||
* @return | |||
*/ | |||
private[ledger] def payBlockReward(block: Block, worldStateProxy: InMemoryWorldStateProxy): InMemoryWorldStateProxy = { |
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.
Just minor comment: I would update scaladoc, to reflect all the changes and maybe mention treasury spec.
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.
Just did! I'm not sure whether to mention the spec or not as it's not public yet. I think the description I added should be a good enough description without having to refer to it
Description
Adapts block reward distribution to the treasury
Proposed Solution
Follows the specification described in this section:
Testing
Testing on mainnet
Testing on private network
Pending