Skip to content

Commit 3130e83

Browse files
committed
fix: return bool instead of Result<bool>
1 parent 13a71b2 commit 3130e83

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stacks-signer/src/v0/signer_state.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ impl LocalStateMachine {
639639
&replay_state,
640640
&expected_burn_block,
641641
proposal_config.reset_replay_set_after_fork_blocks,
642-
)? {
642+
) {
643643
info!(
644644
"Signer state: replay set is stalled after {} tenures. Clearing the replay set.",
645645
proposal_config.reset_replay_set_after_fork_blocks
@@ -1243,16 +1243,16 @@ impl LocalStateMachine {
12431243
replay_state: &ReplayState,
12441244
new_burn_block: &NewBurnBlock,
12451245
reset_replay_set_after_fork_blocks: u64,
1246-
) -> Result<bool, SignerChainstateError> {
1246+
) -> bool {
12471247
match replay_state {
12481248
ReplayState::Unset => {
12491249
// not in replay - skip
1250-
Ok(false)
1250+
false
12511251
}
12521252
ReplayState::InProgress(_, replay_scope) => {
12531253
let failsafe_height =
12541254
replay_scope.past_tip.burn_block_height + reset_replay_set_after_fork_blocks;
1255-
Ok(new_burn_block.burn_block_height > failsafe_height)
1255+
new_burn_block.burn_block_height > failsafe_height
12561256
}
12571257
}
12581258
}

0 commit comments

Comments
 (0)