Skip to content

Commit

Permalink
remove commented out branches
Browse files Browse the repository at this point in the history
  • Loading branch information
xoloki committed Nov 22, 2024
1 parent 2cd6dc3 commit 5fd51b5
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions signer/src/transaction_signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,42 +504,6 @@ where
self.relay_message(msg.txid, &msg.inner, bitcoin_chain_tip)
.await?;
}
/*
WstsNetMessage::DkgPublicShares(dkg_public_shares) => {
let public_keys = match self.wsts_state_machines.get(&msg.txid) {
Some(state_machine) => &state_machine.public_keys,
None => return Err(Error::MissingStateMachine),
};
let signer_public_key = match public_keys.signers.get(&dkg_public_shares.signer_id)
{
Some(key) => PublicKey::from(key),
None => return Err(Error::MissingPublicKey),
};
if signer_public_key != msg_public_key {
return Err(Error::InvalidSignature);
}
self.relay_message(msg.txid, &msg.inner, bitcoin_chain_tip)
.await?;
}
WstsNetMessage::DkgPrivateShares(dkg_private_shares) => {
let public_keys = match self.wsts_state_machines.get(&msg.txid) {
Some(state_machine) => &state_machine.public_keys,
None => return Err(Error::MissingStateMachine),
};
let signer_public_key = match public_keys.signers.get(&dkg_private_shares.signer_id)
{
Some(key) => PublicKey::from(key),
None => return Err(Error::MissingPublicKey),
};
if signer_public_key != msg_public_key {
return Err(Error::InvalidSignature);
}
self.relay_message(msg.txid, &msg.inner, bitcoin_chain_tip)
.await?;
}
*/
WstsNetMessage::DkgEndBegin(_) => {
if !chain_tip_report.sender_is_coordinator {
tracing::warn!("Got coordinator message from wrong signer");
Expand Down

0 comments on commit 5fd51b5

Please sign in to comment.