Skip to content

Commit

Permalink
Update mithril-client version (0.8.18 -> 0.10.4) (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-tkach authored Dec 17, 2024
1 parent 0aeadb9 commit ef7261f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
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

0 comments on commit ef7261f

Please sign in to comment.