[wallet] Add an option to change the assumed current height

This commit is contained in:
Alekos Filini
2020-05-06 17:17:14 +02:00
parent 45aa001e10
commit e32559a06a
4 changed files with 61 additions and 12 deletions

View File

@@ -18,6 +18,8 @@ pub enum Capability {
}
pub trait Blockchain {
fn is_online(&self) -> bool;
fn offline() -> Self;
}
@@ -26,6 +28,10 @@ impl Blockchain for OfflineBlockchain {
fn offline() -> Self {
OfflineBlockchain
}
fn is_online(&self) -> bool {
false
}
}
pub trait OnlineBlockchain: Blockchain {