From 875f9a2bd2c1771e61038946a7ee0686bd487acc Mon Sep 17 00:00:00 2001 From: yungwine Date: Mon, 18 Nov 2024 14:17:20 +0400 Subject: [PATCH 1/2] round validator stake info in vl --- mytoncore/mytoncore.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mytoncore/mytoncore.py b/mytoncore/mytoncore.py index 4c4491fa..5aca1b9b 100644 --- a/mytoncore/mytoncore.py +++ b/mytoncore/mytoncore.py @@ -2491,6 +2491,7 @@ def GetValidatorsList(self, past=False, fast=False, start=None, end=None): if saveElectionEntries and adnlAddr in saveElectionEntries: validator["walletAddr"] = saveElectionEntries[adnlAddr]["walletAddr"] validator["stake"] = saveElectionEntries[adnlAddr].get("stake") + validator["stake"] = int(validator["stake"]) if validator["stake"] else None #end for # Set buffer From b61706b5d90591d5e94ac5428bde1333d1cea3b7 Mon Sep 17 00:00:00 2001 From: yungwine Date: Thu, 21 Nov 2024 20:21:10 +0800 Subject: [PATCH 2/2] rm out_of_ser for validators --- mytonctrl/mytonctrl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mytonctrl/mytonctrl.py b/mytonctrl/mytonctrl.py index 4b3dd433..644fe5a9 100755 --- a/mytonctrl/mytonctrl.py +++ b/mytonctrl/mytonctrl.py @@ -783,7 +783,8 @@ def PrintLocalStatus(local, ton, adnlAddr, validatorIndex, validatorEfficiency, print(mytoncoreStatus_text) print(validatorStatus_text) print(validator_out_of_sync_text) - print(validator_out_of_ser_text) + if not ton.using_validator(): # don't need this for validators since they do not serialize states + print(validator_out_of_ser_text) print(dbStatus_text) print(mtcVersion_text) print(validatorVersion_text)