message: [consensus] add ability to control safety rules service
  At start we'll have the safety rules service that runs in the same
  thread / process called local.
  Soon we'll have one called remote that will be used for interprocess
  communication.
  Closes:
  Approved by: dmitri-perelman
diff: @@ -8,12 +8,14 @@ use std::path::PathBuf;
  #[serde(default, deny_unknown_fields)]
  pub struct SafetyRulesConfig {
  pub backend: SafetyRulesBackend,
  + pub service: SafetyRulesService,
  }
  impl Default for SafetyRulesConfig {
  fn default() -> Self {
  Self {
  backend: SafetyRulesBackend::InMemoryStorage,
  + service: SafetyRulesService::Local,
  }
  }
  }
  @@ -68,3 +70,11 @@ impl OnDiskStorageConfig {
  self.data_dir = data_dir;
  }
  }
  +
  +#[derive(Clone, Debug, Deserialize, PartialEq, Serialize)]
  +#[serde(tag = "type")]
  +#[serde(rename_all = "snake_case")]
  +pub enum SafetyRulesService {
  + Local,
  + Remote,
  +}
  