@@ -1543,7 +1543,7 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
1543
1543
// Last, track onchain revoked commitment transaction and fail backward outgoing HTLCs as payment path is broken
1544
1544
if !claimable_outpoints. is_empty ( ) || per_commitment_option. is_some ( ) { // ie we're confident this is actually ours
1545
1545
// We're definitely a counterparty commitment transaction!
1546
- log_trace ! ( logger, "Got broadcast of revoked counterparty commitment transaction, going to generate general spend tx with {} inputs" , claimable_outpoints. len( ) ) ;
1546
+ log_error ! ( logger, "Got broadcast of revoked counterparty commitment transaction, going to generate general spend tx with {} inputs" , claimable_outpoints. len( ) ) ;
1547
1547
for ( idx, outp) in tx. output . iter ( ) . enumerate ( ) {
1548
1548
watch_outputs. push ( ( idx as u32 , outp. clone ( ) ) ) ;
1549
1549
}
@@ -1599,7 +1599,7 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
1599
1599
}
1600
1600
self . counterparty_commitment_txn_on_chain . insert ( commitment_txid, commitment_number) ;
1601
1601
1602
- log_trace ! ( logger, "Got broadcast of non-revoked counterparty commitment transaction {}" , commitment_txid) ;
1602
+ log_info ! ( logger, "Got broadcast of non-revoked counterparty commitment transaction {}" , commitment_txid) ;
1603
1603
1604
1604
macro_rules! check_htlc_fails {
1605
1605
( $txid: expr, $commitment_tx: expr, $id: tt) => {
@@ -1717,7 +1717,7 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
1717
1717
let per_commitment_key = ignore_error ! ( SecretKey :: from_slice( & secret) ) ;
1718
1718
let per_commitment_point = PublicKey :: from_secret_key ( & self . secp_ctx , & per_commitment_key) ;
1719
1719
1720
- log_trace ! ( logger, "Counterparty HTLC broadcast {}:{}" , htlc_txid, 0 ) ;
1720
+ log_error ! ( logger, "Got broadcast of revoked counterparty HTLC transaction, spending {}:{}" , htlc_txid, 0 ) ;
1721
1721
let revk_outp = RevokedOutput :: build ( per_commitment_point, self . counterparty_tx_cache . counterparty_delayed_payment_base_key , self . counterparty_tx_cache . counterparty_htlc_base_key , per_commitment_key, tx. output [ 0 ] . value , self . counterparty_tx_cache . on_counterparty_tx_csv ) ;
1722
1722
let justice_package = PackageTemplate :: build_package ( htlc_txid, 0 , PackageSolvingData :: RevokedOutput ( revk_outp) , height + self . counterparty_tx_cache . on_counterparty_tx_csv as u32 , true , height) ;
1723
1723
let claimable_outpoints = vec ! ( justice_package) ;
@@ -1808,14 +1808,14 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
1808
1808
1809
1809
if self . current_holder_commitment_tx . txid == commitment_txid {
1810
1810
is_holder_tx = true ;
1811
- log_trace ! ( logger, "Got latest holder commitment tx broadcast , searching for available HTLCs to claim" ) ;
1811
+ log_info ! ( logger, "Got broadcast of latest holder commitment tx {} , searching for available HTLCs to claim" , commitment_txid ) ;
1812
1812
let res = self . get_broadcasted_holder_claims ( & self . current_holder_commitment_tx , height) ;
1813
1813
let mut to_watch = self . get_broadcasted_holder_watch_outputs ( & self . current_holder_commitment_tx , tx) ;
1814
1814
append_onchain_update ! ( res, to_watch) ;
1815
1815
} else if let & Some ( ref holder_tx) = & self . prev_holder_signed_commitment_tx {
1816
1816
if holder_tx. txid == commitment_txid {
1817
1817
is_holder_tx = true ;
1818
- log_trace ! ( logger, "Got previous holder commitment tx broadcast , searching for available HTLCs to claim" ) ;
1818
+ log_info ! ( logger, "Got broadcast of previous holder commitment tx {} , searching for available HTLCs to claim" , commitment_txid ) ;
1819
1819
let res = self . get_broadcasted_holder_claims ( holder_tx, height) ;
1820
1820
let mut to_watch = self . get_broadcasted_holder_watch_outputs ( holder_tx, tx) ;
1821
1821
append_onchain_update ! ( res, to_watch) ;
@@ -1845,7 +1845,7 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
1845
1845
}
1846
1846
1847
1847
pub fn get_latest_holder_commitment_txn < L : Deref > ( & mut self , logger : & L ) -> Vec < Transaction > where L :: Target : Logger {
1848
- log_trace ! ( logger, "Getting signed latest holder commitment transaction!" ) ;
1848
+ log_debug ! ( logger, "Getting signed latest holder commitment transaction!" ) ;
1849
1849
self . holder_tx_signed = true ;
1850
1850
let commitment_tx = self . onchain_tx_handler . get_fully_signed_holder_tx ( & self . funding_redeemscript ) ;
1851
1851
let txid = commitment_tx. txid ( ) ;
@@ -1879,7 +1879,7 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
1879
1879
#[ cfg( any( test, feature = "unsafe_revoked_tx_signing" ) ) ]
1880
1880
/// Note that this includes possibly-locktimed-in-the-future transactions!
1881
1881
fn unsafe_get_latest_holder_commitment_txn < L : Deref > ( & mut self , logger : & L ) -> Vec < Transaction > where L :: Target : Logger {
1882
- log_trace ! ( logger, "Getting signed copy of latest holder commitment transaction!" ) ;
1882
+ log_debug ! ( logger, "Getting signed copy of latest holder commitment transaction!" ) ;
1883
1883
let commitment_tx = self . onchain_tx_handler . get_fully_signed_copy_holder_tx ( & self . funding_redeemscript ) ;
1884
1884
let txid = commitment_tx. txid ( ) ;
1885
1885
let mut holder_transactions = vec ! [ commitment_tx] ;
@@ -2086,15 +2086,15 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
2086
2086
matured_htlcs. push ( source. clone ( ) ) ;
2087
2087
}
2088
2088
2089
- log_trace ! ( logger, "HTLC {} failure update has got enough confirmations to be passed upstream" , log_bytes!( payment_hash. 0 ) ) ;
2089
+ log_debug ! ( logger, "HTLC {} failure update has got enough confirmations to be passed upstream" , log_bytes!( payment_hash. 0 ) ) ;
2090
2090
self . pending_monitor_events . push ( MonitorEvent :: HTLCEvent ( HTLCUpdate {
2091
2091
payment_hash : payment_hash,
2092
2092
payment_preimage : None ,
2093
2093
source : source. clone ( ) ,
2094
2094
} ) ) ;
2095
2095
} ,
2096
2096
OnchainEvent :: MaturingOutput { descriptor } => {
2097
- log_trace ! ( logger, "Descriptor {} has got enough confirmations to be passed upstream" , log_spendable!( descriptor) ) ;
2097
+ log_debug ! ( logger, "Descriptor {} has got enough confirmations to be passed upstream" , log_spendable!( descriptor) ) ;
2098
2098
self . pending_events . push ( Event :: SpendableOutputs {
2099
2099
outputs : vec ! [ descriptor]
2100
2100
} ) ;
@@ -2463,7 +2463,7 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
2463
2463
height : height,
2464
2464
event : OnchainEvent :: MaturingOutput { descriptor : spendable_output. clone ( ) } ,
2465
2465
} ;
2466
- log_trace ! ( logger, "Maturing {} until {}" , log_spendable!( spendable_output) , entry. confirmation_threshold( ) ) ;
2466
+ log_info ! ( logger, "Received spendable output {}, spendable at height {}" , log_spendable!( spendable_output) , entry. confirmation_threshold( ) ) ;
2467
2467
self . onchain_events_awaiting_threshold_conf . push ( entry) ;
2468
2468
}
2469
2469
}
0 commit comments