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

Add bank to banking stage regardless of if there is a working bank #19855

Merged
merged 1 commit into from
Sep 17, 2021

Conversation

carllin
Copy link
Contributor

@carllin carllin commented Sep 14, 2021

Problem

BankingStage needs a bank to access stakes, but currently PohRecorder only supports the working bank when the validator is the leader

Summary of Changes

Add get_poh_recorder_bank() API to get a bank from PohRecorder regardless if we are the leader

Fixes #

@codecov
Copy link

codecov bot commented Sep 14, 2021

Codecov Report

Merging #19855 (cb9b071) into master (46d1b61) will increase coverage by 0.0%.
The diff coverage is 90.0%.

@@           Coverage Diff           @@
##           master   #19855   +/-   ##
=======================================
  Coverage    82.6%    82.6%           
=======================================
  Files         478      478           
  Lines      133420   133450   +30     
=======================================
+ Hits       110256   110335   +79     
+ Misses      23164    23115   -49     

@carllin carllin merged commit e6b4dd3 into solana-labs:master Sep 17, 2021
frits-metalogix added a commit to identity-com/solana that referenced this pull request Nov 24, 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.

2 participants