Fix attestation propagation (#1360)

* Add `should_process` for conditional processing of Attestations

* Remove ATTESTATIONS_IGNORED metric
This commit is contained in:
Pawan Dhananjay
2020-07-20 08:25:32 +05:30
committed by GitHub
parent fc5e6cbbb0
commit b885d79ac3
4 changed files with 26 additions and 26 deletions

View File

@@ -271,7 +271,7 @@ impl<T: BeaconChainTypes> AttestationService<T> {
/// Checks if we have subscribed aggregate validators for the subnet. If not, checks the gossip
/// verification, re-propagates and returns false.
pub fn should_process_attestation(
&mut self,
&self,
subnet: SubnetId,
attestation: &Attestation<T::EthSpec>,
) -> bool {