diff --git a/rust/cardano-chain-follower/Cargo.toml b/rust/cardano-chain-follower/Cargo.toml index 7602b6ff51..c0895a245c 100644 --- a/rust/cardano-chain-follower/Cargo.toml +++ b/rust/cardano-chain-follower/Cargo.toml @@ -63,7 +63,7 @@ test-log = { version = "0.2.16", default-features = false, features = [ "trace", ] } clap = "4.5.23" -# rbac-registration = { version = "0.0.2", git = "https://github.com/input-output-hk/catalyst-libs.git", tag = "v0.0.8" } +rbac-registration = { version = "0.0.2", git = "https://github.com/input-output-hk/catalyst-libs.git", tag = "r20250217-00" } # Note, these features are for support of features exposed by dependencies. [features] diff --git a/rust/cardano-chain-follower/examples/follow_chains.rs b/rust/cardano-chain-follower/examples/follow_chains.rs index 611956e4a1..e235f6e53d 100644 --- a/rust/cardano-chain-follower/examples/follow_chains.rs +++ b/rust/cardano-chain-follower/examples/follow_chains.rs @@ -10,6 +10,7 @@ use cardano_blockchain_types::{ }; #[cfg(feature = "mimalloc")] use mimalloc::MiMalloc; +use rbac_registration::cardano::cip509::Cip509; /// Use Mimalloc for the global allocator. #[cfg(feature = "mimalloc")] @@ -457,8 +458,15 @@ fn log_bad_cip36_info(block: &MultiEraBlock, network: Network) { } /// Function for logging bad CIP509. -fn log_bad_cip509_info(_block: &MultiEraBlock, _network: Network) { - // TODO - Implement this function. +fn log_bad_cip509_info(block: &MultiEraBlock, network: Network) { + for cip509 in Cip509::from_block(block, &[]) { + if cip509.report().is_problematic() { + info!( + network = network.to_string(), + "CIP509 invalid: {:?}", cip509 + ); + } + } } #[tokio::main]