Skip to content

Commit d5c8596

Browse files
committed
fix stateserializerenabled parsing
1 parent 1e23455 commit d5c8596

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
@@ -819,7 +819,7 @@ def GetValidatorStatus(self, no_cache=False):
819819
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
820820
status.out_of_ser = status.masterchain_out_of_ser
821821
status.last_deleted_mc_state = int(parse(result, "last_deleted_mc_state", '\n'))
822-
status.stateserializerenabled = parse(result, "stateserializerenabled", '\n') == "true"
822+
status.stateserializerenabled = parse(result, "stateserializerenabled", '\n').strip() == "true"
823823
self.local.try_function(self.parse_stats_from_vc, args=[result, status])
824824
if 'active_validator_groups' in status:
825825
groups = status.active_validator_groups.split() # master:1 shard:2

0 commit comments

Comments
 (0)