Skip to content

Commit

Permalink
Clean up unused stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantamis committed Jul 28, 2021
1 parent 4bdeed0 commit 38762a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/electrum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use serde_json::{self, json, Value};

use std::collections::HashMap;
use std::iter::FromIterator;

use crate::{
cache::Cache,
config::Config,
Expand Down
8 changes: 4 additions & 4 deletions src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ impl TxEntry {
}

pub(crate) struct ConfirmedEntry {
pub txid: Txid,
pub height: usize,
txid: Txid,
height: usize,
}

impl ConfirmedEntry {
Expand All @@ -62,8 +62,8 @@ impl ConfirmedEntry {
}

pub(crate) struct MempoolEntry {
pub txid: Txid,
pub has_unconfirmed_inputs: bool,
txid: Txid,
has_unconfirmed_inputs: bool,
fee: Amount,
}

Expand Down
3 changes: 0 additions & 3 deletions src/tracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,4 @@ impl Tracker {
self.index.filter_by_txid(txid).next()
}

pub fn get_blockhash_spending_by_outpoint(&self, funding: OutPoint) -> Option<BlockHash> {
self.index.filter_by_spending(funding).next()
}
}

0 comments on commit 38762a4

Please sign in to comment.