Skip to content

Commit

Permalink
Fix panic in record() (solana-labs#31978)
Browse files Browse the repository at this point in the history
  • Loading branch information
carllin authored Jun 7, 2023
1 parent 8596e00 commit ce1685f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions poh/src/poh_recorder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:?}"),
}
}
Expand Down

0 comments on commit ce1685f

Please sign in to comment.