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

Remove admin and its operations from rewarding protocol #740

Merged
merged 1 commit into from
Mar 14, 2019
Merged

Remove admin and its operations from rewarding protocol #740

merged 1 commit into from
Mar 14, 2019

Conversation

zjshen14
Copy link
Contributor

No description provided.

@zjshen14 zjshen14 requested a review from raullenchai March 14, 2019 02:57
@zjshen14 zjshen14 requested a review from a team as a code owner March 14, 2019 02:57
Copy link
Member

@raullenchai raullenchai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM modulo one comment

@@ -187,15 +148,6 @@ func (p *Protocol) BlockReward(
return a.blockReward, nil
}

// SetBlockReward sets the block reward amount for the block rewarding. Only the current admin could make this change
func (p *Protocol) SetBlockReward(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we keep this one? My thinking is, when time comes, we will have a logic in minting a new block:

if (tip height == 50000000 && rewarding params != new rewarding params) {
  SetBlockReward(new rewarding params)
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SetBlockReward has some logic that depends on admin to exist. It should not be hard when we want to hard fork and overwrite the block/epoch amount

@zjshen14 zjshen14 merged commit c5a0340 into iotexproject:master Mar 14, 2019
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