Yeah, why are we still using lambdas for this sort of thing?

Co-authored-by: Owen Campbell <owen.campbell@tanti.org.uk>
pull/3143/head
Justin Holmes 2023-06-26 11:13:54 +02:00 committed by jMyles
parent 2c3951bd35
commit d91686c5e1
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import json
from operator import attrgetter
from typing import Dict, Tuple
from ferveo_py import DkgPublicParameters
@ -97,7 +98,7 @@ class DKGOmniscient:
]
# Validators must be sorted by their public key
validators.sort(key=lambda v: v.address)
validators.sort(key=attrgetter("address"))
# Each validator holds their own DKG instance and generates a transcript every
# validator, including themselves