Skip to content

Commit 896cae0

Browse files
committed
fix: error and then panic
1 parent 64a272b commit 896cae0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

stackslib/src/chainstate/stacks/db/accounts.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,11 @@ impl StacksChainState {
415415
) {
416416
clarity_tx
417417
.with_clarity_db(|ref mut db| {
418-
let next_nonce = cur_nonce
419-
.checked_add(1)
420-
.unwrap_or_else(|| panic!("OUT OF NONCES"));
418+
let next_nonce = cur_nonce.checked_add(1).unwrap_or_else(|| {
419+
error!("OUT OF NONCES");
420+
panic!();
421+
});
422+
421423
db.set_account_nonce(&principal, next_nonce)?;
422424
Ok(())
423425
})

0 commit comments

Comments
 (0)