Skip to content

Commit 0fc9509

Browse files
committed
Fix unhandled result in block state machine move_to calls
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent b103cec commit 0fc9509

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stacks-signer/src/signerdb.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,14 @@ impl BlockInfo {
251251

252252
/// Mark the block as locally rejected and invalid
253253
pub fn mark_locally_rejected(&mut self) -> Result<(), String> {
254-
self.move_to(BlockState::LocallyRejected);
254+
self.move_to(BlockState::LocallyRejected)?;
255255
self.valid = Some(false);
256256
Ok(())
257257
}
258258

259259
/// Mark the block as globally rejected and invalid
260260
pub fn mark_globally_rejected(&mut self) -> Result<(), String> {
261-
self.move_to(BlockState::GloballyRejected);
261+
self.move_to(BlockState::GloballyRejected)?;
262262
self.valid = Some(false);
263263
Ok(())
264264
}

0 commit comments

Comments
 (0)