Skip to content

Commit 5085bda

Browse files
committed
Add error log when failing to determine node epoch in mock sign
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 7f6e541 commit 5085bda

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

stacks-signer/src/v0/signer.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,12 @@ impl SignerTrait<SignerMessage> for Signer {
169169
);
170170
}
171171
*sortition_state = None;
172-
let Ok(epoch) = stacks_client.get_node_epoch() else {
173-
warn!("{self}: Failed to determine node epoch. Cannot mock sign.");
174-
return;
172+
let epoch = match stacks_client.get_node_epoch() {
173+
Ok(epoch) => epoch,
174+
Err(e) => {
175+
warn!("{self}: Failed to determine node epoch. Cannot mock sign: {e}");
176+
return;
177+
}
175178
};
176179
debug!("{self}: Epoch 2.5 signer received a new burn block event.";
177180
"burn_height" => burn_height,

0 commit comments

Comments
 (0)