[blockchain] Add an AnyBlockchain enum to allow switching at runtime

This is related to #43
This commit is contained in:
Alekos Filini
2020-09-10 18:11:24 +02:00
parent 5eee18bed2
commit e5cc8d9529
2 changed files with 171 additions and 0 deletions

View File

@@ -42,6 +42,11 @@ use crate::FeeRate;
pub(crate) mod utils;
#[cfg(any(feature = "electrum", feature = "esplora", feature = "compact_filters"))]
pub mod any;
#[cfg(any(feature = "electrum", feature = "esplora", feature = "compact_filters"))]
pub use any::{AnyBlockchain, AnyBlockchainConfig};
#[cfg(feature = "electrum")]
#[cfg_attr(docsrs, doc(cfg(feature = "electrum")))]
pub mod electrum;