workaround nim issue

This commit is contained in:
Etan Kissling 2024-04-15 11:07:15 +02:00
parent dc7353fc35
commit 8223934fc2
No known key found for this signature in database
GPG Key ID: B21DA824C5A3D03D
1 changed files with 3 additions and 3 deletions

View File

@ -98,10 +98,10 @@ func init*(T: type HashedValidatorPubKey, key: ValidatorPubKey): HashedValidator
# The interface of HashSet is such that we must construct a full # The interface of HashSet is such that we must construct a full
# instance to check if it's in the set - then we can return that # instance to check if it's in the set - then we can return that
# instace and discard the one we just created temporarily # instace and discard the one we just created temporarily
keys[tmp] addr keys[tmp][]
except KeyError: except KeyError:
raiseAssert "just checked" raiseAssert "just checked"
else: else:
tmp addr tmp[]
HashedValidatorPubKey(value: addr cached[]) HashedValidatorPubKey(value: cached)