diff --git a/src/mapper/map.rs b/src/mapper/map.rs index e6bfe5a6..ed00c035 100644 --- a/src/mapper/map.rs +++ b/src/mapper/map.rs @@ -302,6 +302,7 @@ impl EventWriter { pool_owners: pool_owners.iter().map(|p| p.to_hex()).collect(), relays: relays.iter().map(relay_to_string).collect(), pool_metadata: pool_metadata.as_ref().map(|m| m.url.clone()), + pool_metadata_hash: pool_metadata.as_ref().map(|m| m.hash.clone().to_hex()) }, Certificate::PoolRetirement(pool, epoch) => EventData::PoolRetirement { pool: pool.to_hex(), diff --git a/src/model.rs b/src/model.rs index 850572dc..8bc1b190 100644 --- a/src/model.rs +++ b/src/model.rs @@ -330,6 +330,7 @@ pub enum EventData { pool_owners: Vec, relays: Vec, pool_metadata: Option, + pool_metadata_hash: Option, }, PoolRetirement { pool: String, diff --git a/src/sinks/terminal/format.rs b/src/sinks/terminal/format.rs index 6ead0ee0..848cee4d 100644 --- a/src/sinks/terminal/format.rs +++ b/src/sinks/terminal/format.rs @@ -248,6 +248,7 @@ impl LogLine { pool_owners: _, relays: _, pool_metadata, + pool_metadata_hash: _, } => LogLine { prefix: "POOL+", color: Color::Magenta,