mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
Remove unused trait
This commit is contained in:
@@ -358,7 +358,6 @@ impl BtcClient {
|
||||
|
||||
async fn handle_subscribe_request(
|
||||
self: Arc<Self>,
|
||||
//tx: impl Watchable + Send + 'static,
|
||||
btc_keys: Account,
|
||||
drk_pub_key: jubjub::SubgroupPoint,
|
||||
) -> BtcResult<()> {
|
||||
@@ -771,21 +770,6 @@ impl fmt::Display for ScriptStatus {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub trait Watchable {
|
||||
fn id(&self) -> Txid;
|
||||
fn script(&self) -> Script;
|
||||
}
|
||||
|
||||
impl Watchable for (Txid, Script) {
|
||||
fn id(&self) -> Txid {
|
||||
self.0
|
||||
}
|
||||
|
||||
fn script(&self) -> Script {
|
||||
self.1.clone()
|
||||
}
|
||||
}
|
||||
impl Encodable for bitcoin::Transaction {
|
||||
fn encode<S: std::io::Write>(&self, s: S) -> Result<usize> {
|
||||
let tx = self.serialize();
|
||||
|
||||
Reference in New Issue
Block a user