mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 04:48:21 +00:00
Address clippy arith lints (#1038)
This commit is contained in:
@@ -271,12 +271,14 @@ impl<T: SlotClock + 'static, E: EthSpec> AttestationService<T, E> {
|
||||
.validator_store
|
||||
.produce_selection_proof(duty.validator_pubkey(), slot)?;
|
||||
let modulo = duty.duty.aggregator_modulo?;
|
||||
|
||||
let subscription = ValidatorSubscription {
|
||||
validator_index,
|
||||
attestation_committee_index,
|
||||
slot,
|
||||
is_aggregator: selection_proof.is_aggregator(modulo),
|
||||
is_aggregator: selection_proof
|
||||
.is_aggregator(modulo)
|
||||
.map_err(|e| crit!(log_1, "Unable to determine aggregator: {:?}", e))
|
||||
.ok()?,
|
||||
};
|
||||
|
||||
Some((subscription, (duty, selection_proof)))
|
||||
|
||||
Reference in New Issue
Block a user