Skip to content

Fetch the execution runtime code properly and test the fraud proof verification on parimay node #308

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

Merged
merged 5 commits into from
Mar 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions crates/sp-executor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,6 @@ impl ExecutionPhase {
/// Error type of fraud proof verification on primary node.
#[derive(RuntimeDebug)]
pub enum VerificationError {
/// Runtime code backend unavailable.
RuntimeCodeBackend,
/// Runtime code can not be fetched from the backend.
RuntimeCode(&'static str),
/// Failed to pass the execution proof check.
BadProof(sp_std::boxed::Box<dyn sp_state_machine::Error>),
/// The `post_state_root` calculated by farmer does not match the one declared in [`FraudProof`].
Expand Down Expand Up @@ -312,6 +308,7 @@ sp_api::decl_runtime_apis! {
}
}

// TODO: remove once the fraud proof verification is moved into the client.
pub mod fraud_proof_ext {
use sp_externalities::ExternalitiesExt;
use sp_runtime_interface::runtime_interface;
Expand Down
Loading