Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow up with attestation "seen" propagation #1058

Closed
paulhauner opened this issue Apr 27, 2020 · 2 comments
Closed

Follow up with attestation "seen" propagation #1058

paulhauner opened this issue Apr 27, 2020 · 2 comments
Assignees

Comments

@paulhauner
Copy link
Member

Description

In ethereum/consensus-specs#1749 I suggest a fix to the spec.

Over in #983 I've implemented my suggested fix without it being part of the spec:

// Ensure the aggregated attestation has not already been seen locally.
//
// TODO: this part of the code is not technically to spec, however I have raised a PR to
// change it:
//
// https://github.com/ethereum/eth2.0-specs/pull/1749
let attestation_root = attestation.tree_hash_root();
if chain
.observed_attestations
.is_known(attestation, attestation_root)
.map_err(|e| Error::BeaconChainError(e.into()))?
{
return Err(Error::AttestationAlreadyKnown(attestation_root));
}

We should keep an eye on the spec PR and resolve this TODO eventually.

@paulhauner
Copy link
Member Author

This issues is blocked on #983, it only becomes valid once it is merged.

@paulhauner
Copy link
Member Author

Not relevant anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant