Remove real-overseer 🎉 (#2834)

* remove real-overseer

* overseer: only activate leaves which support parachains

* integrate HeadSupportsParachains into service

* remove unneeded line
This commit is contained in:
Robert Habermeier
2021-04-08 20:24:06 +02:00
committed by GitHub
parent a345e2a83e
commit 57038b2e46
19 changed files with 135 additions and 165 deletions
@@ -13,7 +13,7 @@
//! A RocksDB instance for storing parachain data; availability data, and approvals.
#[cfg(feature = "real-overseer")]
#[cfg(feature = "full-node")]
use {
std::io,
std::path::PathBuf,
@@ -25,7 +25,6 @@ use {
mod upgrade;
mod columns {
#[cfg(feature = "real-overseer")]
pub const NUM_COLUMNS: u32 = 3;
@@ -73,13 +72,13 @@ impl Default for CacheSizes {
}
}
#[cfg(feature = "real-overseer")]
#[cfg(feature = "full-node")]
fn other_io_error(err: String) -> io::Error {
io::Error::new(io::ErrorKind::Other, err)
}
/// Open the database on disk, creating it if it doesn't exist.
#[cfg(feature = "real-overseer")]
#[cfg(feature = "full-node")]
pub fn open_creating(
root: PathBuf,
cache_sizes: CacheSizes,
@@ -14,7 +14,7 @@
//! Migration code for the parachain's DB.
#![cfg(feature = "real-overseer")]
#![cfg(feature = "full-node")]
use std::fs;
use std::io;