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

getConfirmedBlocks now has an upper limit on slot range #10927

Merged
merged 1 commit into from
Jul 10, 2020

Conversation

mvines
Copy link
Contributor

@mvines mvines commented Jul 6, 2020

getConfirmedBlocks potentially allows the user to request the full confirmed slot range from genesis up to the latest. We don't want to bind up an RPC server thread for that long, especially once we support a longer transaction history. Impose a very generous limit of 500,000 slots, which is larger than the number of slots per epoch on on mainnet-beta.

@codecov
Copy link

codecov bot commented Jul 6, 2020

Codecov Report

Merging #10927 into master will decrease coverage by 0.0%.
The diff coverage is 100.0%.

@@            Coverage Diff            @@
##           master   #10927     +/-   ##
=========================================
- Coverage    82.1%    82.0%   -0.1%     
=========================================
  Files         316      316             
  Lines       72000    72020     +20     
=========================================
- Hits        59130    59128      -2     
- Misses      12870    12892     +22     

@mvines mvines requested a review from CriesofCarrots July 6, 2020 19:14
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