Skip to content

Commit 58554ce

Browse files
committed
Fix more unused warnings in test_utils
1 parent 8f403c0 commit 58554ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/util/test_utils.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ struct JusticeTxData {
282282
commitment_number: u64,
283283
}
284284

285-
pub(crate) struct WatchtowerPersister {
285+
pub struct WatchtowerPersister {
286286
persister: TestPersister,
287287
/// Upon a new commitment_signed, we'll get a
288288
/// ChannelMonitorUpdateStep::LatestCounterpartyCommitmentTxInfo. We'll store the justice tx
@@ -296,7 +296,7 @@ pub(crate) struct WatchtowerPersister {
296296
}
297297

298298
impl WatchtowerPersister {
299-
pub(crate) fn new(destination_script: Script) -> Self {
299+
pub fn new(destination_script: Script) -> Self {
300300
WatchtowerPersister {
301301
persister: TestPersister::new(),
302302
unsigned_justice_tx_data: Mutex::new(HashMap::new()),
@@ -305,7 +305,7 @@ impl WatchtowerPersister {
305305
}
306306
}
307307

308-
pub(crate) fn justice_tx(&self, funding_txo: OutPoint, commitment_txid: &Txid)
308+
pub fn justice_tx(&self, funding_txo: OutPoint, commitment_txid: &Txid)
309309
-> Option<Transaction> {
310310
self.watchtower_state.lock().unwrap().get(&funding_txo).unwrap().get(commitment_txid).cloned()
311311
}
@@ -425,7 +425,7 @@ impl<Signer: sign::WriteableEcdsaChannelSigner> chainmonitor::Persist<Signer> fo
425425
}
426426
}
427427

428-
pub(crate) struct TestStore {
428+
pub struct TestStore {
429429
persisted_bytes: Mutex<HashMap<String, HashMap<String, Vec<u8>>>>,
430430
read_only: bool,
431431
}

0 commit comments

Comments
 (0)