Skip to content

Commit

Permalink
add debugging to signer
Browse files Browse the repository at this point in the history
  • Loading branch information
xoloki committed Nov 13, 2024
1 parent fabc875 commit 87951f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/state_machine/signer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ impl<SignerType: SignerTrait> Signer<SignerType> {

/// process the passed incoming message, and return any outgoing messages needed in response
pub fn process(&mut self, message: &Message) -> Result<Vec<Message>, Error> {
debug!("Signer {} got {:?}", self.signer_id, message);
let out_msgs = match message {
Message::DkgBegin(dkg_begin) => self.dkg_begin(dkg_begin),
Message::DkgPrivateBegin(dkg_private_begin) => {
Expand All @@ -321,6 +322,7 @@ impl<SignerType: SignerTrait> Signer<SignerType> {
Message::NonceRequest(nonce_request) => self.nonce_request(nonce_request),
_ => Ok(vec![]), // TODO
};
debug!("Signer {} response {:?}", self.signer_id, out_msgs);

match out_msgs {
Ok(mut out) => {
Expand Down

0 comments on commit 87951f1

Please sign in to comment.