Skip to content

Commit 9dd2f75

Browse files
committed
fix stateserializerenabled parsing
1 parent 02d31b0 commit 9dd2f75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mytoncore/mytoncore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ def GetValidatorStatus(self, no_cache=False):
818818
status.out_of_sync = status.masterchain_out_of_sync if status.masterchain_out_of_sync > status.shardchain_out_of_sync else status.shardchain_out_of_sync
819819
status.out_of_ser = status.masterchain_out_of_ser
820820
status.last_deleted_mc_state = int(parse(result, "last_deleted_mc_state", '\n'))
821-
status.stateserializerenabled = parse(result, "stateserializerenabled", '\n') == "true"
821+
status.stateserializerenabled = parse(result, "stateserializerenabled", '\n').strip() == "true"
822822
self.local.try_function(self.parse_stats_from_vc, args=[result, status])
823823
if 'active_validator_groups' in status:
824824
groups = status.active_validator_groups.split() # master:1 shard:2

0 commit comments

Comments
 (0)