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

Block Reward emission by time #16

Open
rstormsf opened this issue May 24, 2018 · 2 comments
Open

Block Reward emission by time #16

rstormsf opened this issue May 24, 2018 · 2 comments

Comments

@rstormsf
Copy link

rstormsf commented May 24, 2018

Title

  Title: Reward validators by time passed
  Layer: Consensus

Abstract

In order to make a chain consensus agnostic, there is way to reward them by the time passed, not by how many blocks they have validated. Therefore, whenever each block is created, it should save the timestamp and check the diff between last time the block was validated. If there is minimum threshold archieved (5 sec, for example) it should reward next validator from the array list to issue 1 reward (POA).
Smart contract should handle the state the order of last rewarded validator.

Rationale

In order to try different consensus algorithms, such as honeybadger BTF, we have to come up with different way to archive validator's incentive.

@varasev
Copy link

varasev commented Jun 27, 2018

The BlockReward smart contract has been complemented by the logic described above. It's been done in poanetwork/poa-network-consensus-contracts#133.

@varasev
Copy link

varasev commented Jul 12, 2018

Reward by time logic has been moved to separate RewardByTime contract: poanetwork/poa-network-consensus-contracts#140

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

No branches or pull requests

2 participants