@@ -20,7 +20,7 @@ use semver::Version;
20
20
use std:: thread;
21
21
use std:: time:: Duration ;
22
22
23
- const MIN_COMPAT_NODE_VERSION : & str = "2 .0.0-beta.1 " ;
23
+ const MIN_COMPAT_NODE_VERSION : & str = "3 .0.0" ;
24
24
25
25
pub fn wallet_command < C > (
26
26
wallet_args : & ArgMatches < ' _ > ,
@@ -36,24 +36,18 @@ where
36
36
let tor_config = config. members . unwrap ( ) . tor ;
37
37
38
38
// Check the node version info, and exit with report if we're not compatible
39
- //let mut node_client = HTTPNodeClient::new(&wallet_config.check_node_api_http_addr, None);
40
39
let global_wallet_args = wallet_args:: parse_global_args ( & wallet_config, & wallet_args)
41
40
. expect ( "Can't read configuration file" ) ;
42
41
node_client. set_node_api_secret ( global_wallet_args. node_api_secret . clone ( ) ) ;
43
42
44
43
// This will also cache the node version info for calls to foreign API check middleware
45
44
if let Some ( v) = node_client. clone ( ) . get_version_info ( ) {
46
- // Isn't going to happen just yet (as of 2.0.0) but keep this here for
47
- // the future. the nodeclient's get_version_info will return 1.0 if
48
- // it gets a 404 for the version function
49
45
if Version :: parse ( & v. node_version ) < Version :: parse ( MIN_COMPAT_NODE_VERSION ) {
50
- let version = if v. node_version == "1.0.0" {
51
- "1.x.x series"
52
- } else {
53
- & v. node_version
54
- } ;
55
- println ! ( "The Grin Node in use (version {}) is outdated and incompatible with this wallet version." , version) ;
56
- println ! ( "Please update the node to version 2.0.0 or later and try again." ) ;
46
+ println ! ( "The Grin Node in use (version {}) is outdated and incompatible with this wallet version." , v. node_version) ;
47
+ println ! (
48
+ "Please update the node to version {} or later and try again." ,
49
+ MIN_COMPAT_NODE_VERSION
50
+ ) ;
57
51
return 1 ;
58
52
}
59
53
}
0 commit comments