Skip to content

Commit 6351ef7

Browse files
committed
Clean up unused stuff for lower diff
1 parent 4bdeed0 commit 6351ef7

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

src/electrum.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use serde_json::{self, json, Value};
1010

1111
use std::collections::HashMap;
1212
use std::iter::FromIterator;
13-
13+
1414
use crate::{
1515
cache::Cache,
1616
config::Config,

src/status.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ impl TxEntry {
4646
}
4747

4848
pub(crate) struct ConfirmedEntry {
49-
pub txid: Txid,
50-
pub height: usize,
49+
txid: Txid,
50+
height: usize,
5151
}
5252

5353
impl ConfirmedEntry {
@@ -62,8 +62,8 @@ impl ConfirmedEntry {
6262
}
6363

6464
pub(crate) struct MempoolEntry {
65-
pub txid: Txid,
66-
pub has_unconfirmed_inputs: bool,
65+
txid: Txid,
66+
has_unconfirmed_inputs: bool,
6767
fee: Amount,
6868
}
6969

src/tracker.rs

-4
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,4 @@ impl Tracker {
105105
// Note: there are two blocks with coinbase transactions having same txid (see BIP-30)
106106
self.index.filter_by_txid(txid).next()
107107
}
108-
109-
pub fn get_blockhash_spending_by_outpoint(&self, funding: OutPoint) -> Option<BlockHash> {
110-
self.index.filter_by_spending(funding).next()
111-
}
112108
}

0 commit comments

Comments
 (0)