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

go/roothash: Make the parent block check earlier #3206

Merged
merged 1 commit into from
Aug 21, 2020

Conversation

kostko
Copy link
Member

@kostko kostko commented Aug 21, 2020

No description provided.

@kostko kostko force-pushed the kostko/fix/commit-pool-parent-check branch from 0de55ac to f4679db Compare August 21, 2020 08:19
@codecov
Copy link

codecov bot commented Aug 21, 2020

Codecov Report

Merging #3206 into master will increase coverage by 0.26%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3206      +/-   ##
==========================================
+ Coverage   67.16%   67.42%   +0.26%     
==========================================
  Files         371      371              
  Lines       36107    36107              
==========================================
+ Hits        24250    24344      +94     
+ Misses       8715     8627      -88     
+ Partials     3142     3136       -6     
Impacted Files Coverage Δ
go/roothash/api/commitment/pool.go 73.80% <100.00%> (ø)
go/consensus/tendermint/api/api.go 77.65% <0.00%> (-9.58%) ⬇️
go/consensus/tendermint/abci/state/state.go 61.53% <0.00%> (-7.70%) ⬇️
go/common/grpc/policy/policy.go 64.38% <0.00%> (-6.85%) ⬇️
go/worker/storage/service_external.go 51.47% <0.00%> (-5.89%) ⬇️
go/worker/common/p2p/dispatch.go 76.31% <0.00%> (-4.39%) ⬇️
go/runtime/tagindexer/tagindexer.go 68.47% <0.00%> (-4.35%) ⬇️
go/storage/mkvs/iterator.go 83.12% <0.00%> (-2.50%) ⬇️
go/runtime/transaction/transaction.go 75.72% <0.00%> (-2.32%) ⬇️
go/storage/mkvs/lookup.go 73.46% <0.00%> (-2.05%) ⬇️
... and 30 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 89225d6...f4679db. Read the comment docs.

Copy link
Member

@ptrus ptrus left a comment

Choose a reason for hiding this comment

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

This just makes moves the block check to before" Verify RAK-attestation" right? (which does makes sense)

@kostko
Copy link
Member Author

kostko commented Aug 21, 2020

This just makes moves the block check to before" Verify RAK-attestation" right? (which does makes sense)

Yeah, the check is less expensive than descriptor lookup and the RAK signature verifications, so it makes sense to reject early.

@kostko kostko merged commit 767c163 into master Aug 21, 2020
@kostko kostko deleted the kostko/fix/commit-pool-parent-check branch August 21, 2020 09:29
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