fix: Check if already committed in commit (#568)

Co-authored-by: sinu.eth <65924192+sinui0@users.noreply.github.com>
This commit is contained in:
th4s
2024-08-15 23:29:59 +02:00
committed by GitHub
parent 0a3a1db520
commit cc01b24759

View File

@@ -332,6 +332,9 @@ impl MpcTlsLeader {
#[instrument(level = "debug", skip_all, err)]
async fn commit(&mut self) -> Result<(), MpcTlsError> {
if self.committed {
return Ok(());
}
self.state.try_as_active()?;
debug!("committing to transcript");