Skip to content

Commit 74b7863

Browse files
committed
wip
1 parent bafcabd commit 74b7863

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

lightning/src/chain/chainmonitor.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,9 +1417,10 @@ where
14171417
let logger = WithChannelMonitor::from(&self.logger, &monitor, None);
14181418
log_trace!(
14191419
logger,
1420-
"Updating ChannelMonitor to id {} for channel {}",
1420+
"Updating ChannelMonitor to id {} for channel {} with updates {:#?}",
14211421
update.update_id,
1422-
log_funding_info!(monitor)
1422+
log_funding_info!(monitor),
1423+
update.updates
14231424
);
14241425

14251426
// We hold a `pending_monitor_updates` lock through `update_monitor` to ensure we

lightning/src/chain/channelmonitor.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3544,6 +3544,8 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitorImpl<Signer> {
35443544
return Err("Previous secret did not match new one");
35453545
}
35463546

3547+
println!("Channel monitor current commitment secret index: {}", self.commitment_secrets.get_min_seen_secret());
3548+
35473549
// Prune HTLCs from the previous counterparty commitment tx so we don't generate failure/fulfill
35483550
// events for now-revoked/fulfilled HTLCs.
35493551
let mut removed_fulfilled_htlcs = false;

lightning/src/ln/chanmon_update_fail_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3584,9 +3584,9 @@ fn do_test_blocked_chan_preimage_release(completion_mode: BlockedUpdateComplMode
35843584
#[cfg(not(feature = "safe_channels"))]
35853585
#[test]
35863586
fn test_blocked_chan_preimage_release() {
3587-
do_test_blocked_chan_preimage_release(BlockedUpdateComplMode::AtReload);
3587+
//do_test_blocked_chan_preimage_release(BlockedUpdateComplMode::AtReload);
35883588
do_test_blocked_chan_preimage_release(BlockedUpdateComplMode::Sync);
3589-
do_test_blocked_chan_preimage_release(BlockedUpdateComplMode::Async);
3589+
//do_test_blocked_chan_preimage_release(BlockedUpdateComplMode::Async);
35903590
}
35913591

35923592
fn do_test_inverted_mon_completion_order(

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3818,6 +3818,8 @@ macro_rules! handle_new_monitor_update {
38183818
$self: ident, $funding_txo: expr, $update: expr, $peer_state_lock: expr, $peer_state: expr,
38193819
$per_peer_state_lock: expr, $chan: expr
38203820
) => {{
3821+
eprintln!("MACRO DEBUG called at {}:{}", file!(), line!());
3822+
38213823
let (update_completed, all_updates_complete) = handle_new_monitor_update_internal(
38223824
$self,
38233825
&mut $peer_state.in_flight_monitor_updates,

0 commit comments

Comments
 (0)