From 7e7f72ed74f73f4e70df65fa95d1a8c77aaf0d22 Mon Sep 17 00:00:00 2001
From: Bradley Olson <34992650+BradleyOlson64@users.noreply.github.com>
Date: Sat, 4 Mar 2023 10:35:04 -0800
Subject: [PATCH] Change handle_import_statements to FatalResult (#6820)
* Changing dispute db errors to fatal
* fmt
---
.../core/dispute-coordinator/src/backend.rs | 13 ++++++------
.../core/dispute-coordinator/src/db/v1.rs | 21 +++++++++----------
.../dispute-coordinator/src/initialized.rs | 6 +++++-
3 files changed, 21 insertions(+), 19 deletions(-)
diff --git a/polkadot/node/core/dispute-coordinator/src/backend.rs b/polkadot/node/core/dispute-coordinator/src/backend.rs
index 9275420d0a..d49ace4925 100644
--- a/polkadot/node/core/dispute-coordinator/src/backend.rs
+++ b/polkadot/node/core/dispute-coordinator/src/backend.rs
@@ -21,7 +21,6 @@
//! [`Backend`], maintaining consistency between queries and temporary writes,
//! before any commit to the underlying storage is made.
-use polkadot_node_subsystem::SubsystemResult;
use polkadot_primitives::{CandidateHash, SessionIndex};
use std::collections::HashMap;
@@ -40,17 +39,17 @@ pub enum BackendWriteOp {
/// An abstraction over backend storage for the logic of this subsystem.
pub trait Backend {
/// Load the earliest session, if any.
- fn load_earliest_session(&self) -> SubsystemResult