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

fix: cache certificate by height #730

Merged
merged 5 commits into from
Oct 5, 2023
Merged

fix: cache certificate by height #730

merged 5 commits into from
Oct 5, 2023

Conversation

themantre
Copy link
Contributor

@themantre themantre commented Oct 5, 2023

Description

This PR implements a more accurate approach to caching the certificate by its height.
It also removes the height parameter from the CommitBlock function, as the certificate already contains the height of the committing block.

@codecov
Copy link

codecov bot commented Oct 5, 2023

Codecov Report

Merging #730 (9e81a7b) into main (a25efe2) will decrease coverage by 0.02%.
Report is 1 commits behind head on main.
The diff coverage is 92.70%.

@@            Coverage Diff             @@
##             main     #730      +/-   ##
==========================================
- Coverage   83.05%   83.03%   -0.02%     
==========================================
  Files         172      172              
  Lines        8020     8024       +4     
==========================================
+ Hits         6661     6663       +2     
- Misses       1043     1044       +1     
- Partials      316      317       +1     

@amirvalhalla amirvalhalla self-requested a review October 5, 2023 13:18
state/facade.go Outdated Show resolved Hide resolved
state/state.go Outdated Show resolved Hide resolved
store/interface.go Outdated Show resolved Hide resolved
store/store.go Outdated Show resolved Hide resolved
Copy link
Member

@amirvalhalla amirvalhalla left a comment

Choose a reason for hiding this comment

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

@themantre
thanks, please resolve request changes.

@themantre
Copy link
Contributor Author

@amirvalhalla resolved, please check

Copy link
Member

@amirvalhalla amirvalhalla left a comment

Choose a reason for hiding this comment

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

@themantre
thanks, everything looks good.

@amirvalhalla amirvalhalla merged commit b37a2d9 into main Oct 5, 2023
12 checks passed
@amirvalhalla amirvalhalla deleted the cache-certificate branch October 5, 2023 14:02
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