Skip to content
Merged
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
3 changes: 1 addition & 2 deletions rust/cardano-chain-follower/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ pallas = { version = "0.30.1", git = "https://github.com/input-output-hk/catalys
pallas-hardano = { version = "0.30.1", git = "https://github.com/input-output-hk/catalyst-pallas.git", rev = "9b5183c8b90b90fe2cc319d986e933e9518957b3" }
pallas-crypto = { version = "0.30.1", git = "https://github.com/input-output-hk/catalyst-pallas.git", rev = "9b5183c8b90b90fe2cc319d986e933e9518957b3" }

# cspell: words licence
mithril-client = { version = "0.8.18", default-features = false, features = [
mithril-client = { version = "0.10.4", default-features = false, features = [
"full",
"num-integer-backend",
] }
Expand Down
14 changes: 5 additions & 9 deletions rust/cardano-chain-follower/src/mithril_snapshot_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,15 +359,11 @@ impl MithrilSnapshotConfig {
.map_err(|e| Error::MithrilClient(self.chain, url.clone(), e))?;

// Check we have a snapshot, and its for our network.
match snapshots.first() {
Some(snapshot) => {
let _aggregator_network =
Network::from_str(&snapshot.beacon.network).map_err(|_err| {
Error::MithrilClientNetworkMismatch(
self.chain,
snapshot.beacon.network.clone(),
)
})?;
match snapshots.first().and_then(|s| s.beacon.network.as_ref()) {
Some(network) => {
let _aggregator_network = Network::from_str(network.as_str()).map_err(|_err| {
Error::MithrilClientNetworkMismatch(self.chain, network.clone())
})?;
},
None => return Err(Error::MithrilClientNoSnapshots(self.chain, url)),
}
Expand Down
Loading