Skip to content

Commit

Permalink
Merge pull request #82 from xian-network/crosschainer-patch-17
Browse files Browse the repository at this point in the history
Update utils.py
  • Loading branch information
crosschainer authored Apr 15, 2024
2 parents 1023dec + ad0d7d3 commit 754143d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/xian/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,6 @@ def tx_hash_from_tx(tx):

def hash_from_validator_updates(validator_updates):
h = hashlib.sha3_256()
# Sort the list of validator updates to ensure that the hash is consistent
validator_updates = sorted(validator_updates)
encoded_validator_updates = str(validator_updates).encode()
h.update(encoded_validator_updates)
return h.hexdigest()
Expand Down

0 comments on commit 754143d

Please sign in to comment.