@@ -282,7 +282,7 @@ struct JusticeTxData {
282
282
commitment_number : u64 ,
283
283
}
284
284
285
- pub ( crate ) struct WatchtowerPersister {
285
+ pub struct WatchtowerPersister {
286
286
persister : TestPersister ,
287
287
/// Upon a new commitment_signed, we'll get a
288
288
/// ChannelMonitorUpdateStep::LatestCounterpartyCommitmentTxInfo. We'll store the justice tx
@@ -296,7 +296,7 @@ pub(crate) struct WatchtowerPersister {
296
296
}
297
297
298
298
impl WatchtowerPersister {
299
- pub ( crate ) fn new ( destination_script : Script ) -> Self {
299
+ pub fn new ( destination_script : Script ) -> Self {
300
300
WatchtowerPersister {
301
301
persister : TestPersister :: new ( ) ,
302
302
unsigned_justice_tx_data : Mutex :: new ( HashMap :: new ( ) ) ,
@@ -305,7 +305,7 @@ impl WatchtowerPersister {
305
305
}
306
306
}
307
307
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 )
309
309
-> Option < Transaction > {
310
310
self . watchtower_state . lock ( ) . unwrap ( ) . get ( & funding_txo) . unwrap ( ) . get ( commitment_txid) . cloned ( )
311
311
}
@@ -425,7 +425,7 @@ impl<Signer: sign::WriteableEcdsaChannelSigner> chainmonitor::Persist<Signer> fo
425
425
}
426
426
}
427
427
428
- pub ( crate ) struct TestStore {
428
+ pub struct TestStore {
429
429
persisted_bytes : Mutex < HashMap < String , HashMap < String , Vec < u8 > > > > ,
430
430
read_only : bool ,
431
431
}
0 commit comments