From ce1685f80c5e6217107647a5bd305234b3063ddd Mon Sep 17 00:00:00 2001 From: carllin Date: Wed, 7 Jun 2023 18:40:46 -0400 Subject: [PATCH] Fix panic in record() (#31978) --- poh/src/poh_recorder.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/poh/src/poh_recorder.rs b/poh/src/poh_recorder.rs index a78d45fd5..37d074404 100644 --- a/poh/src/poh_recorder.rs +++ b/poh/src/poh_recorder.rs @@ -183,6 +183,13 @@ impl TransactionRecorder { starting_transaction_index: None, }; } + Err(PohRecorderError::SendError(e)) => { + return RecordTransactionsSummary { + record_transactions_timings, + result: Err(PohRecorderError::SendError(e)), + starting_transaction_index: None, + }; + } Err(e) => panic!("Poh recorder returned unexpected error: {e:?}"), } }