mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 13:54:44 +00:00
Fix pub key getting in signature verification
This commit is contained in:
@@ -48,7 +48,8 @@ pub fn verify_aggregate_signature_for_indices<T>(
|
||||
/*
|
||||
* Load the validators public key from our store.
|
||||
*/
|
||||
let pub_key = validator_store.get_public_key_by_index(i)?
|
||||
let pub_key = validator_store
|
||||
.get_public_key_by_index(validator)?
|
||||
.ok_or(SignatureVerificationError::NoPublicKeyForValidator)?;
|
||||
/*
|
||||
* Add the validators public key to the aggregate public key.
|
||||
|
||||
Reference in New Issue
Block a user