Skip to content

Commit

Permalink
signer: Have the signer report its node_id itself
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Sep 30, 2024
1 parent 4632714 commit 1654a3e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libs/gl-client/.resources/proto/glclient/scheduler.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions libs/gl-client/src/signer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ impl Signer {
msg: e.to_string(),
request: Some(req.clone()),
git_version: GITHASH.to_string(),
node_id: self.node_id(),
})
.await;
#[cfg(not(feature = "permissive"))]
Expand Down Expand Up @@ -568,6 +569,7 @@ impl Signer {
msg: format!("{:?}", e),
request: Some(req.clone()),
git_version: GITHASH.to_string(),
node_id: self.node_id(),
})
.await;
return Err(Error::Other(anyhow!("processing request: {e:?}")));
Expand Down
3 changes: 2 additions & 1 deletion libs/proto/glclient/scheduler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ message SignerRejection {
string msg = 1;
greenlight.HsmRequest request = 2;
string git_version = 3;
bytes node_id = 4;
}

message PairDeviceRequest {
Expand Down Expand Up @@ -545,4 +546,4 @@ message SignerResponse {
greenlight.Empty empty = 2;
ApprovePairingResponse approve_pairing = 3;
}
}
}

0 comments on commit 1654a3e

Please sign in to comment.