Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-deploy-network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
{
"1" = {
type = "unverified-cardano-passive-norelay",
pool_id = "pool1y0uxkqyplyx6ld25e976t0s35va3ysqcscatwvy2sd2cwcareq7",
pool_id = "pool13zafxlpfgymf474uv52qt557z5k5frn9p83yr55zp267wj5mpu4",
},
}
mithril_leader_aggregator_endpoint: https://aggregator.dev-preview.api.mithril.network/aggregator
Expand Down
4 changes: 2 additions & 2 deletions internal/mithril-dmq/src/model/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ impl DmqNetwork {
/// Preprod magic ID
pub const PREPROD_MAGIC_ID: MagicId = 1; // TODO: Update magic ids for networks
/// Preview magic ID
pub const PREVIEW_MAGIC_ID: MagicId = 2; // TODO: Update magic ids for networks
pub const PREVIEW_MAGIC_ID: MagicId = 3141592; // TODO: Update magic ids for networks
/// Devnet magic ID
pub(crate) const DEVNET_MAGIC_ID: MagicId = 3141592; // TODO: Update magic ids for networks
pub(crate) const DEVNET_MAGIC_ID: MagicId = 0; // TODO: Update magic ids for networks

/// Instantiates a DmqNetwork from its code and magic id
pub fn from_code(
Expand Down
29 changes: 20 additions & 9 deletions mithril-aggregator/src/services/signature_processor.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::{sync::Arc, time::Duration};

use anyhow::anyhow;
use slog::{Logger, error, trace, warn};
use slog::{Logger, debug, error, trace, warn};

use mithril_common::{
StdResult,
Expand All @@ -10,7 +10,7 @@ use mithril_common::{
};
use tokio::{select, sync::watch::Receiver};

use crate::MetricsService;
use crate::{MetricsService, services::CertifierServiceError};

use super::{CertifierService, SignatureConsumer};

Expand Down Expand Up @@ -90,13 +90,24 @@ impl SignatureProcessor for SequentialSignatureProcessor {
.get_signature_registration_total_successful_since_startup()
.increment(&[&origin_network]);
}
Err(e) => {
total_import_errors += 1;
error!(
self.logger, "Error dispatching single signature";
"full_payload" => #?signature, "error" => ?e
);
}
Err(err) => match err.downcast_ref::<CertifierServiceError>() {
Some(CertifierServiceError::AlreadyCertified(signed_entity_type)) => {
debug!(self.logger, "process_signatures::open_message_already_certified"; "signed_entity_type" => ?signed_entity_type, "party_id" => &signature.party_id);
}
Some(CertifierServiceError::Expired(signed_entity_type)) => {
debug!(self.logger, "process_signatures::open_message_expired"; "signed_entity_type" => ?signed_entity_type, "party_id" => &signature.party_id);
}
Some(CertifierServiceError::NotFound(signed_entity_type)) => {
debug!(self.logger, "process_signatures::not_found"; "signed_entity_type" => ?signed_entity_type, "party_id" => &signature.party_id);
}
Some(_) | None => {
total_import_errors += 1;
error!(
self.logger, "Error dispatching single signature";
"full_payload" => #?signature, "error" => ?err
);
}
},
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion mithril-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rustdoc-args = ["--cfg", "docsrs"]
ignored = ["serde_bytes"]

[features]
default = ["rug-backend"]
default = ["rug-backend", "allow_skip_signer_certification"]

# Enables `rug-backend` features for `mithril-stm` dependency
rug-backend = ["mithril-stm/rug-backend"]
Expand Down
Loading