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

Issue246 block reward - part 4 minus last commit to see if it still segv in tests on Mac in CI #2473

Closed

Conversation

hewison-chris
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Sep 9, 2021

Codecov Report

Merging #2473 (a2dbf50) into v0.x.x (19f26be) will increase coverage by 0.14%.
The diff coverage is 97.61%.

Impacted file tree graph

@@            Coverage Diff             @@
##           v0.x.x    #2473      +/-   ##
==========================================
+ Coverage   86.80%   86.95%   +0.14%     
==========================================
  Files         154      153       -1     
  Lines       14948    14896      -52     
==========================================
- Hits        12976    12953      -23     
+ Misses       1972     1943      -29     
Flag Coverage Δ
integration 67.02% <ø> (+35.40%) ⬆️
unittests 86.75% <97.61%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
source/agora/consensus/Ledger.d 94.17% <96.29%> (+0.07%) ⬆️
source/agora/consensus/Fee.d 95.81% <96.55%> (-0.44%) ⬇️
source/agora/common/BitMask.d 94.31% <100.00%> (+0.81%) ⬆️
source/agora/consensus/Reward.d 95.18% <100.00%> (+0.99%) ⬆️
source/agora/network/Manager.d 77.00% <100.00%> (ø)
source/agora/test/Fee.d 96.66% <100.00%> (+0.11%) ⬆️
source/agora/utils/Log.d 54.47% <0.00%> (-11.95%) ⬇️
source/agora/node/Validator.d 89.88% <0.00%> (-1.79%) ⬇️
source/agora/node/main.d
source/agora/script/Engine.d 96.14% <0.00%> (+0.14%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 19f26be...a2dbf50. Read the comment docs.

This is in preperation for when the payment block is no longer the same block
as the last block paid for.
Fees are now only paid to Validators for blocks they sign. The `Coinbase`
transaction is now included in the block at the end of the next payout period.
The fees are the `sum of the inputs` minus the `sum of the outputs`.
If we do not store the fees when we externalise a block then some inputs may be
spent before the payout is made. The data fees are also stored as they are only
paid to the 'Commons Budget' so are subtracted from the fees when paying the
validators their percentage of fees.
Rewards should be calculated per block to enable payments to
validators based on which have signed each block. The correct change can
then also be calculated for the `Commons Budget`.
@hewison-chris hewison-chris linked an issue Sep 16, 2021 that may be closed by this pull request
@hewison-chris hewison-chris deleted the issue246_block_reward_3B branch October 12, 2021 07:07
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.

1 participant