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

Rpc: Fix erroneous default start_slot in getBlocks #18948

Merged

Conversation

CriesofCarrots
Copy link
Contributor

@CriesofCarrots CriesofCarrots commented Jul 28, 2021

Problem

getBlocks has the same bug that getBlocksWithLimit did 🤕 039e4d8

Summary of Changes

If getBlocks doesn't find any finalized blocks in range, use start_slot to filter confirmed blocks instead of default

Fixes #18946

@codecov
Copy link

codecov bot commented Jul 28, 2021

Codecov Report

Merging #18948 (ee6cf4e) into master (65ccfed) will decrease coverage by 0.0%.
The diff coverage is 100.0%.

@@            Coverage Diff            @@
##           master   #18948     +/-   ##
=========================================
- Coverage    82.7%    82.6%   -0.1%     
=========================================
  Files         448      448             
  Lines      127172   127173      +1     
=========================================
- Hits       105186   105100     -86     
- Misses      21986    22073     +87     

@CriesofCarrots CriesofCarrots merged commit 578f2aa into solana-labs:master Jul 28, 2021
mergify bot pushed a commit that referenced this pull request Jul 28, 2021
mergify bot pushed a commit that referenced this pull request Jul 28, 2021
@CriesofCarrots CriesofCarrots deleted the fix-rpc-conf-blocks branch July 28, 2021 22:29
CriesofCarrots added a commit that referenced this pull request Jul 28, 2021
mergify bot added a commit that referenced this pull request Jul 29, 2021
(cherry picked from commit 578f2aa)

Co-authored-by: Tyera Eulberg <[email protected]>
mergify bot added a commit that referenced this pull request Jul 29, 2021
(cherry picked from commit 578f2aa)

Co-authored-by: Tyera Eulberg <[email protected]>
This was referenced Aug 23, 2021
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.

getConfirmedBlocks returns out-of-range blocks with commitment confirmed
1 participant