Skip to content

Commit

Permalink
added start check for registrations
Browse files Browse the repository at this point in the history
  • Loading branch information
erhant committed Oct 31, 2024
1 parent d3df707 commit ebac87d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/commands/coordinator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ pub async fn run_oracle(
kinds.push(kind);
}
}

if kinds.is_empty() {
return Err(eyre!("You are not registered as any type of oracle."))?;
}
} else {
// otherwise, make sure we are registered to required kinds
for kind in &kinds {
Expand Down

0 comments on commit ebac87d

Please sign in to comment.