Skip to content

Change store::on_gossip_attestation take a reference to signed attestations #271

@MegaRedHand

Description

@MegaRedHand

The function currently takes ownership of the attestation:

pub fn on_gossip_attestation(
store: &mut Store,
signed_attestation: SignedAttestation,
) -> Result<(), StoreError> {

This could be changed to receive a reference, to avoid copying the signature. Internally we move the attestation data, but that is easily clonable, while the signature is not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions