Skip to content

Conversation

@tsachiherman
Copy link
Contributor

@tsachiherman tsachiherman commented Oct 13, 2021

Summary

This PR eliminate the totalsNewRounds, which perform the exact same calculation previously performed by the block evaluator.

Test Plan

  • Unit tests updates.
  • Catchpoint label testing : starting a node catching up to 16,800,000 and the correct catchpoint label was observed on round 16,810,000.

@codecov-commenter
Copy link

codecov-commenter commented Oct 13, 2021

Codecov Report

Merging #3053 (f74a128) into master (507eb53) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3053      +/-   ##
==========================================
- Coverage   43.68%   43.66%   -0.03%     
==========================================
  Files         391      391              
  Lines       86870    86845      -25     
==========================================
- Hits        37953    37918      -35     
- Misses      42886    42895       +9     
- Partials     6031     6032       +1     
Impacted Files Coverage Δ
ledger/accountdb.go 65.88% <ø> (+0.25%) ⬆️
ledger/tracker.go 76.19% <ø> (ø)
ledger/acctupdates.go 64.65% <100.00%> (-0.17%) ⬇️
ledger/blockqueue.go 81.03% <0.00%> (-4.03%) ⬇️
cmd/algoh/blockWatcher.go 77.77% <0.00%> (-3.18%) ⬇️
crypto/merkletrie/trie.go 66.42% <0.00%> (-2.19%) ⬇️
crypto/merkletrie/node.go 91.62% <0.00%> (-1.87%) ⬇️
catchup/service.go 68.57% <0.00%> (-1.56%) ⬇️
network/wsPeer.go 74.09% <0.00%> (+0.25%) ⬆️
... 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 507eb53...f74a128. Read the comment docs.

algorandskiy
algorandskiy previously approved these changes Oct 14, 2021
@tsachiherman tsachiherman merged commit 019571e into algorand:master Oct 14, 2021
@tsachiherman tsachiherman deleted the tsachi/removetotalsrecalc branch October 14, 2021 17:53
cce pushed a commit to cce/go-algorand that referenced this pull request Oct 28, 2021
## Summary

This PR eliminate the `totalsNewRounds`, which perform the exact same calculation previously performed by the block evaluator.

## Test Plan

- [x] Unit tests updates.
- [x] Catchpoint label testing : starting a node catching up to 16,800,000 and the correct catchpoint label was observed on round 16,810,000.
@egieseke egieseke mentioned this pull request Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants