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

Fix slot index used while calculating leader schedule #3017

Merged
merged 1 commit into from
Feb 28, 2019

Conversation

pgarg66
Copy link
Contributor

@pgarg66 pgarg66 commented Feb 28, 2019

Problem

slot_leader_at() is using absolute slot number instead of index in the epoch

Summary of Changes

Calculate the index of slot in the current offset and use it to compute leader schedule

- slot_leader_at() was using absolute slot number instead of index in the epoch
@pgarg66 pgarg66 requested review from carllin and garious February 28, 2019 23:21
@pgarg66 pgarg66 added the automerge Merge this Pull Request automatically once CI passes label Feb 28, 2019
@solana-grimes solana-grimes merged commit 30bccc0 into solana-labs:master Feb 28, 2019
@codecov
Copy link

codecov bot commented Feb 28, 2019

Codecov Report

Merging #3017 into master will increase coverage by <.1%.
The diff coverage is 100%.

@@           Coverage Diff            @@
##           master   #3017     +/-   ##
========================================
+ Coverage    76.8%   76.8%   +<.1%     
========================================
  Files         130     130             
  Lines       19860   19861      +1     
========================================
+ Hits        15261   15262      +1     
  Misses       4599    4599

1 similar comment
@codecov
Copy link

codecov bot commented Feb 28, 2019

Codecov Report

Merging #3017 into master will increase coverage by <.1%.
The diff coverage is 100%.

@@           Coverage Diff            @@
##           master   #3017     +/-   ##
========================================
+ Coverage    76.8%   76.8%   +<.1%     
========================================
  Files         130     130             
  Lines       19860   19861      +1     
========================================
+ Hits        15261   15262      +1     
  Misses       4599    4599

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants