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

Add earned Reward to Node Overview #6

Open
konstantinullrich opened this issue Feb 18, 2021 · 1 comment
Open

Add earned Reward to Node Overview #6

konstantinullrich opened this issue Feb 18, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@konstantinullrich
Copy link
Owner

konstantinullrich commented Feb 18, 2021

earnedReward = createdBlocks * 16.5

get the createdBlocks:

for (block in getBlockHeadersRange(registationHeight, lastBlockRewardHeight) {
    if (block.serviceNodeWinner = snPubKey) {
       createdBlocks++
    }
}
@konstantinullrich konstantinullrich added the enhancement New feature or request label Feb 18, 2021
@ianmacd
Copy link
Contributor

ianmacd commented Oct 11, 2021

This would be great to have. Is there any reason you haven't implemented it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants