Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Expose SlotHistory::oldest() -> Slot#10799

Merged
ryoqun merged 1 commit intosolana-labs:masterfrom
ryoqun:slot-history-oldest
Jun 25, 2020
Merged

Expose SlotHistory::oldest() -> Slot#10799
ryoqun merged 1 commit intosolana-labs:masterfrom
ryoqun:slot-history-oldest

Conversation

@ryoqun
Copy link
Copy Markdown
Contributor

@ryoqun ryoqun commented Jun 25, 2020

Problem

There is no convenient way to access how far old slots are available in SlotHistory.

Specifically needed by https://github.com/solana-labs/solana/pull/10718/files#diff-d848cba681535238849e7e33ed32702bR693

Summary of Changes

Expose the information and start dog-fooding internally also.

Context

Spawned from #10718

@ryoqun ryoqun requested a review from carllin June 25, 2020 03:31
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 25, 2020

Codecov Report

Merging #10799 into master will increase coverage by 0.0%.
The diff coverage is 100.0%.

@@           Coverage Diff           @@
##           master   #10799   +/-   ##
=======================================
  Coverage    81.8%    81.8%           
=======================================
  Files         302      302           
  Lines       70855    70868   +13     
=======================================
+ Hits        57975    57997   +22     
+ Misses      12880    12871    -9     

@ryoqun ryoqun merged commit 9f5bd5f into solana-labs:master Jun 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants