solana/core
steviez 377ba53a31
Fix bug where ReplayStage holds an Arc<Bank> for process lifetime (#31267)
* Fix bug where ReplayStage holds an Arc<Bank> for process lifetime

When ReplayStage::new() kicks off, it needs to do some setup with the
working bank prior to entering the main processing loop. This setup is
done before entering the main processing loop; however, a bug made it
such that an Arc<Bank> remained in scope after the processing loop had
been entered. The processing loop is only exited when the process exits,
so this means that Bank was being held for the lifetime of the process.
This is a waste of resources and prevents background cleanup.

* clippy
2023-04-19 18:12:34 +00:00
..
benches update benches after removing packet.sender_stake (#31110) 2023-04-07 14:27:29 -05:00
src Fix bug where ReplayStage holds an Arc<Bank> for process lifetime (#31267) 2023-04-19 18:12:34 +00:00
tests Remove bank_snapshots_dir param (#31249) 2023-04-19 09:37:46 -07:00
.gitignore
Cargo.toml removes unused dependencies (#30917) 2023-03-28 17:25:44 +00:00
build.rs