diff --git a/.github/workflows/test-deploy-network.yml b/.github/workflows/test-deploy-network.yml index 04996133bb9..819da5744f9 100644 --- a/.github/workflows/test-deploy-network.yml +++ b/.github/workflows/test-deploy-network.yml @@ -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 diff --git a/Cargo.lock b/Cargo.lock index 7cbae3bb5e3..8be14822ff7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4043,6 +4043,7 @@ dependencies = [ "async-trait", "bincode", "blake2 0.10.6", + "hex", "mithril-cardano-node-chain", "mithril-common", "mockall", diff --git a/internal/mithril-dmq/Cargo.toml b/internal/mithril-dmq/Cargo.toml index 5effc300ee1..72173be9363 100644 --- a/internal/mithril-dmq/Cargo.toml +++ b/internal/mithril-dmq/Cargo.toml @@ -19,6 +19,7 @@ anyhow = { workspace = true } async-trait = { workspace = true } bincode = { version = "2.0.1" } blake2 = "0.10.6" +hex = { workspace = true } mithril-cardano-node-chain = { path = "../cardano-node/mithril-cardano-node-chain" } mithril-common = { path = "../../mithril-common" } pallas-codec = { version = "0.34.0" } diff --git a/internal/mithril-dmq/src/model/message.rs b/internal/mithril-dmq/src/model/message.rs index 94ac63348af..b5425d72086 100644 --- a/internal/mithril-dmq/src/model/message.rs +++ b/internal/mithril-dmq/src/model/message.rs @@ -5,7 +5,7 @@ use pallas_network::miniprotocols::localmsgsubmission::DmqMsg; use serde::{Deserialize, Deserializer, Serialize, Serializer}; /// Wrapper for a DMQ message which can be serialized and deserialized. -#[derive(Debug, Clone, PartialEq, Eq)] +#[derive(Clone, PartialEq, Eq)] pub struct DmqMessage(DmqMsg); #[derive(Serialize, Deserialize)] @@ -70,6 +70,17 @@ impl<'de> Deserialize<'de> for DmqMessage { } } +impl std::fmt::Debug for DmqMessage { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!( + f, + "DmqMessage(id: {}, msg: {:?})", + hex::encode(&self.msg_payload.msg_id), + self.msg_payload + ) + } +} + #[cfg(test)] mod tests { use pallas_network::miniprotocols::localmsgsubmission::{ @@ -82,7 +93,12 @@ mod tests { fn test_dmq_message_serialize_deserialize() { let dmq_msg = DmqMsg { msg_payload: DmqMsgPayload { - msg_id: vec![0, 1], + msg_id: vec![ + 253, 111, 24, 132, 36, 83, 113, 4, 132, 74, 241, 66, 114, 193, 163, 53, 35, 86, + 249, 154, 135, 189, 75, 219, 6, 153, 202, 132, 243, 164, 21, 224, 85, 56, 190, + 59, 62, 14, 115, 123, 156, 95, 171, 144, 157, 161, 160, 224, 47, 200, 68, 8, + 226, 150, 234, 230, 72, 30, 67, 71, 7, 228, 22, 187, + ], msg_body: vec![0, 1, 2], kes_period: 10, expires_at: 100, diff --git a/mithril-common/Cargo.toml b/mithril-common/Cargo.toml index ae1ac114c38..d54793a97b4 100644 --- a/mithril-common/Cargo.toml +++ b/mithril-common/Cargo.toml @@ -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"]