Skip to content

Commit

Permalink
skip shard vault stuff for offchain-worker
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Oct 26, 2023
1 parent 6e03fff commit 2109bd2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,9 @@ fn start_worker<E, T, D, InitializationHandler, WorkerModeProvider>(
})
.unwrap();

if let Ok(shard_vault) = enclave.get_ecc_vault_pubkey(shard) {
if WorkerModeProvider::worker_mode() == WorkerMode::OffChainWorker {
info!("skipping shard vault check because not yet supported for offchain worker");
} else if let Ok(shard_vault) = enclave.get_ecc_vault_pubkey(shard) {
println!(
"shard vault account is already initialized in state: {}",
shard_vault.to_ss58check()
Expand Down

0 comments on commit 2109bd2

Please sign in to comment.