-
Notifications
You must be signed in to change notification settings - Fork 106
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
Sync beacon execution update on demand #1140
Conversation
@@ -330,32 +325,11 @@ pub mod pallet { | |||
} | |||
|
|||
pub(crate) fn process_update(update: &Update) -> DispatchResult { | |||
Self::cross_check_execution_state()?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the cross_check
we don't need it any more.
// Checks that we don't skip execution headers, they need to be imported sequentially. | ||
let latest_execution_state: ExecutionHeaderState = Self::latest_execution_state(); | ||
ensure!( | ||
latest_execution_state.block_number == 0 || | ||
update.execution_header.block_number() == | ||
latest_execution_state.block_number + 1, | ||
Error::<T>::ExecutionHeaderSkippedBlock | ||
); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the consecutive check we don't need it any more.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1140 +/- ##
===========================================
+ Coverage 49.66% 72.17% +22.51%
===========================================
Files 63 57 -6
Lines 3707 2523 -1184
Branches 72 72
===========================================
- Hits 1841 1821 -20
+ Misses 1849 685 -1164
Partials 17 17
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Resolves: SNO-805,SNO-428
Addressing: paritytech/polkadot-sdk#2522 (comment)
It depends on EIP-4788 which requires Dencun to be activated first so mark it as
do-not-merge
.