Snowbridge: Synchronize from Snowfork repository (#3761)
This PR includes the following 2 improvements: ## Ethereum Client Author: @yrong ### Original Upstream PRs - https://github.com/Snowfork/polkadot-sdk/pull/123 - https://github.com/Snowfork/polkadot-sdk/pull/125 ### Description The Ethereum client syncs beacon headers as they are finalized, and imports every execution header. When a message is received, it is verified against the import execution header. This is unnecessary, since the execution header can be sent with the message as proof. The recent Deneb Ethereum upgrade made it easier to locate the relevant beacon header from an execution header, and so this improvement was made possible. This resolves a concern @svyatonik had in our initial Rococo PR: https://github.com/paritytech/polkadot-sdk/pull/2522#discussion_r1431270691 ## Inbound Queue Author: @yrong ### Original Upstream PR - https://github.com/Snowfork/polkadot-sdk/pull/118 ### Description When the AH sovereign account (who pays relayer rewards) is depleted, the inbound message will not fail. The relayer just will not receive rewards. Both these changes were done by @yrong, many thanks.️ --------- Co-authored-by: claravanstaden <Cats 4 life!> Co-authored-by: Ron <yrong1997@gmail.com> Co-authored-by:
Vincent Geddes <vincent@snowfork.com> Co-authored-by:
Svyatoslav Nikolsky <svyatonik@gmail.com>
parent
e5427969
Pipeline
#461424
passed
with stages
in
1 hour, 2 minutes, and 35 seconds
Stage:
Stage:
Stage:
Stage:
Stage:
Stage:
Stage:
Showing
- bridges/snowbridge/pallets/ethereum-client/fixtures/src/lib.rs 179 additions, 93 deletions...es/snowbridge/pallets/ethereum-client/fixtures/src/lib.rs
- bridges/snowbridge/pallets/ethereum-client/src/benchmarking/mod.rs 0 additions, 18 deletions...nowbridge/pallets/ethereum-client/src/benchmarking/mod.rs
- bridges/snowbridge/pallets/ethereum-client/src/impls.rs 103 additions, 35 deletionsbridges/snowbridge/pallets/ethereum-client/src/impls.rs
- bridges/snowbridge/pallets/ethereum-client/src/lib.rs 9 additions, 228 deletionsbridges/snowbridge/pallets/ethereum-client/src/lib.rs
- bridges/snowbridge/pallets/ethereum-client/src/mock.rs 17 additions, 44 deletionsbridges/snowbridge/pallets/ethereum-client/src/mock.rs
- bridges/snowbridge/pallets/ethereum-client/src/tests.rs 123 additions, 351 deletionsbridges/snowbridge/pallets/ethereum-client/src/tests.rs
- bridges/snowbridge/pallets/ethereum-client/src/types.rs 1 addition, 11 deletionsbridges/snowbridge/pallets/ethereum-client/src/types.rs
- bridges/snowbridge/pallets/ethereum-client/src/weights.rs 0 additions, 7 deletionsbridges/snowbridge/pallets/ethereum-client/src/weights.rs
- bridges/snowbridge/pallets/ethereum-client/tests/fixtures/execution-header-update.json 0 additions, 54 deletions...hereum-client/tests/fixtures/execution-header-update.json
- bridges/snowbridge/pallets/ethereum-client/tests/fixtures/execution-proof.json 54 additions, 0 deletions...llets/ethereum-client/tests/fixtures/execution-proof.json
- bridges/snowbridge/pallets/ethereum-client/tests/fixtures/finalized-header-update.json 25 additions, 23 deletions...hereum-client/tests/fixtures/finalized-header-update.json
- bridges/snowbridge/pallets/ethereum-client/tests/fixtures/inbound-message.json 71 additions, 23 deletions...llets/ethereum-client/tests/fixtures/inbound-message.json
- bridges/snowbridge/pallets/ethereum-client/tests/fixtures/initial-checkpoint.json 15 additions, 15 deletions...ts/ethereum-client/tests/fixtures/initial-checkpoint.json
- bridges/snowbridge/pallets/ethereum-client/tests/fixtures/sync-committee-update.json 22 additions, 20 deletions...ethereum-client/tests/fixtures/sync-committee-update.json
- bridges/snowbridge/pallets/inbound-queue/fixtures/src/lib.rs 0 additions, 11 deletionsbridges/snowbridge/pallets/inbound-queue/fixtures/src/lib.rs
- bridges/snowbridge/pallets/inbound-queue/fixtures/src/register_token.rs 70 additions, 14 deletions...idge/pallets/inbound-queue/fixtures/src/register_token.rs
- bridges/snowbridge/pallets/inbound-queue/fixtures/src/register_token_with_insufficient_fee.rs 0 additions, 42 deletions...ueue/fixtures/src/register_token_with_insufficient_fee.rs
- bridges/snowbridge/pallets/inbound-queue/fixtures/src/send_token.rs 68 additions, 14 deletions...owbridge/pallets/inbound-queue/fixtures/src/send_token.rs
- bridges/snowbridge/pallets/inbound-queue/fixtures/src/send_token_to_penpal.rs 70 additions, 16 deletions...allets/inbound-queue/fixtures/src/send_token_to_penpal.rs
- bridges/snowbridge/pallets/inbound-queue/src/benchmarking/mod.rs 2 additions, 2 deletions.../snowbridge/pallets/inbound-queue/src/benchmarking/mod.rs
Please register or sign in to comment