mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 18:41:03 +00:00
5d9826c262
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>
62 lines
1.8 KiB
Rust
62 lines
1.8 KiB
Rust
//! Autogenerated weights for ethereum_beacon_client
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2022-09-27, STEPS: `10`, REPEAT: 10, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("/tmp/snowbridge/spec.json"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./target/release/snowbridge
|
|
// benchmark
|
|
// pallet
|
|
// --chain
|
|
// /tmp/snowbridge/spec.json
|
|
// --execution=wasm
|
|
// --pallet
|
|
// ethereum_beacon_client
|
|
// --extrinsic
|
|
// *
|
|
// --steps
|
|
// 10
|
|
// --repeat
|
|
// 10
|
|
// --output
|
|
// pallets/ethereum-client/src/weights.rs
|
|
// --template
|
|
// templates/module-weight-template.hbs
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
|
|
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
|
use sp_std::marker::PhantomData;
|
|
|
|
/// Weight functions needed for ethereum_beacon_client.
|
|
pub trait WeightInfo {
|
|
fn force_checkpoint() -> Weight;
|
|
fn submit() -> Weight;
|
|
fn submit_with_sync_committee() -> Weight;
|
|
}
|
|
|
|
// For backwards compatibility and tests
|
|
impl WeightInfo for () {
|
|
fn force_checkpoint() -> Weight {
|
|
Weight::from_parts(97_263_571_000_u64, 0)
|
|
.saturating_add(Weight::from_parts(0, 3501))
|
|
.saturating_add(RocksDbWeight::get().reads(2))
|
|
.saturating_add(RocksDbWeight::get().writes(9))
|
|
}
|
|
fn submit() -> Weight {
|
|
Weight::from_parts(26_051_019_000_u64, 0)
|
|
.saturating_add(Weight::from_parts(0, 93857))
|
|
.saturating_add(RocksDbWeight::get().reads(8))
|
|
.saturating_add(RocksDbWeight::get().writes(4))
|
|
}
|
|
fn submit_with_sync_committee() -> Weight {
|
|
Weight::from_parts(122_461_312_000_u64, 0)
|
|
.saturating_add(Weight::from_parts(0, 93857))
|
|
.saturating_add(RocksDbWeight::get().reads(6))
|
|
.saturating_add(RocksDbWeight::get().writes(1))
|
|
}
|
|
}
|