Skip to content
Commit 7f5c7ab7 authored by Clara van Staden's avatar Clara van Staden Committed by github-actions[bot]
Browse files

Fix border condition in Snowbridge free consensus Updates (#5671)



# Description

A fix for a border condition introduced with new feature
https://github.com/paritytech/polkadot-sdk/pull/5201. A malicious
relayer could spam the Ethereum client with sync committee updates that
have already been imported for the period. This PR adds a storage item
to track the last imported sync committee period, so that subsequent
irrelevant updates are not free.

Original PR: https://github.com/Snowfork/polkadot-sdk/pull/172

## Integration

Downstream projects are not affected. Relayers will not be able to spam
the Ethereum client with irrelevant sync committee updates for free.

## Review Notes

Adds a storage item to track the last free sync committee update period,
so that duplicate imports are not free.

---------

Co-authored-by: default avatarAdrian Catangiu <[email protected]>
(cherry picked from commit 1790e427)
parent b61075bb
Pipeline #498502 waiting for manual action with stages
in 38 minutes and 1 second
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment