diff --git a/bcos3sdk/bcos3client.py b/bcos3sdk/bcos3client.py index cb2bd9c..0459e81 100644 --- a/bcos3sdk/bcos3client.py +++ b/bcos3sdk/bcos3client.py @@ -81,7 +81,7 @@ def init(self,client_config_instance=client_config): self.check_node_version() except Exception as e: if client_config.bcos3_when_version_mismatch == "WARN": - print(f"!!! [WARN] CHECK NODE VERSION EXCEPTION(But still continue): {e} \n") + print(f"[INFO] CHECK NODE VERSION AND GO ON: {e} \n") else: raise e @@ -104,7 +104,7 @@ def check_node_version(self): if int(major) == majorVersion and int(minor) <= maxMinorVersion: return True else: - raise Exception(f"Python-sdk is NOT Fully Verified for node version [{version}] yet") + raise Exception(f"Python-sdk will verify for node version [{version}]") except KeyError as e: raise Exception(f"Check node version,Missing field in JSON :{e}. {strInfo}") except ValueError as e: diff --git a/client_config.py.template b/client_config.py.template index c5257fe..ec59b31 100644 --- a/client_config.py.template +++ b/client_config.py.template @@ -46,7 +46,7 @@ class client_config: bcos3_check_node_version = True #是否在初始化后验证一次node版本 bcos3_when_version_mismatch = "WARN" # WARN 或 "ERROR" ,如果版本不匹配,WARN只是打个警告,ERROR就抛异常了,建议WARN bcos3_major_version = 3 - bcos3_max_miner_version = 2 #目前最大版本号验证到3.2,后续新版本验证后持续更新 + bcos3_max_miner_version = 6 #最大子版本号验证 # -------------------FISCO BCOS3.0 End----------------------------------------- # --------------------------------------