mirror of
https://github.com/serai-dex/serai.git
synced 2025-02-02 03:06:31 +00:00
Remove the substrate feature from tendermint
This commit is contained in:
parent
09f8ac37c4
commit
61757d5e19
3 changed files with 0 additions and 14 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -10190,7 +10190,6 @@ dependencies = [
|
||||||
"futures",
|
"futures",
|
||||||
"log",
|
"log",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"sp-runtime",
|
|
||||||
"thiserror",
|
"thiserror",
|
||||||
"tokio",
|
"tokio",
|
||||||
]
|
]
|
||||||
|
|
|
@ -17,8 +17,3 @@ parity-scale-codec = { version = "3", features = ["derive"] }
|
||||||
|
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
tokio = { version = "1", features = ["macros", "sync", "time", "rt"] }
|
tokio = { version = "1", features = ["macros", "sync", "time", "rt"] }
|
||||||
|
|
||||||
sp-runtime = { git = "https://github.com/serai-dex/substrate", version = "7.0.0", optional = true }
|
|
||||||
|
|
||||||
[features]
|
|
||||||
substrate = ["sp-runtime"]
|
|
||||||
|
|
|
@ -187,14 +187,6 @@ pub trait Block: Send + Sync + Clone + PartialEq + Debug + Encode + Decode {
|
||||||
fn id(&self) -> Self::Id;
|
fn id(&self) -> Self::Id;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "substrate")]
|
|
||||||
impl<B: sp_runtime::traits::Block> Block for B {
|
|
||||||
type Id = B::Hash;
|
|
||||||
fn id(&self) -> B::Hash {
|
|
||||||
self.hash()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Trait representing the distributed system Tendermint is providing consensus over.
|
/// Trait representing the distributed system Tendermint is providing consensus over.
|
||||||
#[async_trait]
|
#[async_trait]
|
||||||
pub trait Network: Send + Sync {
|
pub trait Network: Send + Sync {
|
||||||
|
|
Loading…
Reference in a new issue