Skip to content

Commit

Permalink
fix: set version to unknown on unhandled error
Browse files Browse the repository at this point in the history
For e.g. btcd nodes, this would loop on retrying to load the version.
  • Loading branch information
0xB10C committed Jan 26, 2024
1 parent f29204c commit 5acd121
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ async fn main() -> Result<(), MainError> {
}
_ => {
error!("Could not fetch getnetworkinfo from {} on network '{}' (id={}): {:?}.", node.info(), network.name, network.id, e);
version_info = VERSION_UNKNOWN.to_string();
break;
}
},
Expand Down

0 comments on commit 5acd121

Please sign in to comment.