Skip to content

Commit

Permalink
Use BankForks on tests - Part 2 (solana-labs#34234)
Browse files Browse the repository at this point in the history
* Use BankForks on tests - Part 2

Signed-off-by: Lucas Steuernagel <[email protected]>
  • Loading branch information
LucasSte authored Nov 29, 2023
1 parent e1165aa commit aeb4a34
Show file tree
Hide file tree
Showing 5 changed files with 366 additions and 199 deletions.
2 changes: 1 addition & 1 deletion runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ pub(super) enum RewardInterval {
}

impl Bank {
fn wrap_with_bank_forks_for_tests(self) -> (Arc<Self>, Arc<RwLock<BankForks>>) {
pub(super) fn wrap_with_bank_forks_for_tests(self) -> (Arc<Self>, Arc<RwLock<BankForks>>) {
let bank_fork = BankForks::new_rw_arc(self);
let bank_arc = bank_fork.read().unwrap().root_bank();
bank_arc
Expand Down
Loading

0 comments on commit aeb4a34

Please sign in to comment.