Skip to content

Commit

Permalink
Clear ddc-verification OCW flag on early returns
Browse files Browse the repository at this point in the history
  • Loading branch information
khssnv committed Dec 12, 2024
1 parent 1f795ff commit ac9797c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pallets/ddc-verification/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,9 @@ pub mod pallet {
) {
return;
}
scopeguard::defer!({
local_storage_clear(StorageKind::PERSISTENT, IS_RUNNING_KEY);
});

let verification_account = unwrap_or_log_error!(
Self::collect_verification_pub_key(),
Expand Down Expand Up @@ -887,9 +890,6 @@ pub mod pallet {

Self::submit_errors(&errors, &verification_account, &signer);
}

// Allow the next invocation of the offchain worker hook to run.
local_storage_clear(StorageKind::PERSISTENT, IS_RUNNING_KEY);
}
}

Expand Down

0 comments on commit ac9797c

Please sign in to comment.