Fix channel panic in tests (#16503)

* Fix channel panic

* Add exit signal to PohRecorder because Crossbeam doesnt drop objects inside dropped channel
This commit is contained in:
carllin
2021-04-14 10:07:21 -07:00
committed by GitHub
parent eddfe06a00
commit f0c150cfb9
5 changed files with 131 additions and 49 deletions

View File

@@ -510,6 +510,7 @@ impl Validator {
blockstore.new_shreds_signals.first().cloned(),
&leader_schedule_cache,
&poh_config,
exit.clone(),
);
if config.snapshot_config.is_some() {
poh_recorder.set_bank(&bank);