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: get recent blocks by stamp #509

Merged
merged 2 commits into from Jun 15, 2023

Conversation

vlasfama
Copy link
Contributor

@vlasfama vlasfama commented Jun 14, 2023

Description

This PR makes it possible to fetch the latest block using the stamp, which removes the need to search the levelDB for the specific block.
This improve the performance of executing sortition transactions that need to obtain the sortition seeds based on the block stamp.

@codecov
Copy link

codecov bot commented Jun 14, 2023

Codecov Report

Merging #509 (9f43328) into main (1787d9f) will increase coverage by 0.00%.
The diff coverage is 85.00%.

@@           Coverage Diff           @@
##             main     #509   +/-   ##
=======================================
  Coverage   82.95%   82.96%           
=======================================
  Files         154      154           
  Lines        7305     7290   -15     
=======================================
- Hits         6060     6048   -12     
+ Misses        961      958    -3     
  Partials      284      284           

store/mock.go Outdated Show resolved Hide resolved
@b00f b00f enabled auto-merge (squash) June 15, 2023 05:13
@b00f b00f merged commit fd9e749 into pactus-project:main Jun 15, 2023
12 checks passed
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.

None yet

2 participants