Remove HeaderBackend requirement from AuthorityDiscovery and NetworkWorker (#13730)

* Remove `HeaderBackend` requirement from `NetworkWorker`

* Remove HeaderBackend from authority-discovery
This commit is contained in:
Sebastian Kunert authored and GitHub committed 2023-03-28 07:10:50 +00:00
1 parent 551367d4cb
commit c41eadc090
8 files changed
+43 -30

No files matched your search

@@ -23,6 +23,7 @@ pub type Result<T> = std::result::Result<T, Error>;
/// Error type for the authority discovery module.
#[derive(Debug, thiserror::Error)]
#[allow(missing_docs)]
pub enum Error {
#[error("Received dht value found event with records with different keys.")]
ReceivingDhtValueFoundEventWithDifferentKeys,
@@ -71,4 +72,7 @@ pub enum Error {
#[error("Received authority record without a valid signature for the remote peer id.")]
MissingPeerIdSignature,
#[error("Unable to fetch best block.")]
BestBlockFetchingError,
}