Skip to content

Commit

Permalink
Update error message for unexpected participant
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Aug 26, 2024
1 parent c8a2fc3 commit 09ebdf3
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ async fn handle_initial_incoming_ws_message(
};

{
// Check that the given public key matches the public key we got in the
// UserTransactionRequest or register transaction
// Check that the given public key is of the ones we are expecting for this protocol session
let mut listeners = app_state
.listener_state
.listeners
Expand All @@ -186,8 +185,7 @@ async fn handle_initial_incoming_ws_message(
// Make the signing process fail, since one of the commitee has misbehaved
listeners.remove(&msg.session_id);
return Err(SubscribeErr::Decryption(
"Public key does not match that given in UserTransactionRequest or register \
transaction"
"Public key does not match any of those expected for this protocol session"
.to_string(),
));
}
Expand Down

0 comments on commit 09ebdf3

Please sign in to comment.