We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f54ded0 commit f9353b7Copy full SHA for f9353b7
mytoncore/mytoncore.py
@@ -2956,12 +2956,10 @@ def GetVotedComplaints(self, election_id: int = None):
2956
complaints = self.GetComplaints(election_id)
2957
result = {}
2958
validator_index = self.GetValidatorIndex()
2959
- for complaint in complaints.values():
+ for pseudohash, complaint in complaints.items():
2960
votedValidators = complaint.get("votedValidators")
2961
if validator_index in votedValidators:
2962
- pubkey = complaint.get("pubkey")
2963
- election_id = complaint.get("electionId")
2964
- result[pubkey + str(election_id)] = complaint
+ result[pseudohash] = complaint
2965
return result
2966
#end define
2967
0 commit comments