Skip to content

Commit

Permalink
Add more debug info for shutdown balance
Browse files Browse the repository at this point in the history
  • Loading branch information
contrun committed Jun 18, 2024
1 parent 516ce30 commit 45cb8e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ckb/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3154,10 +3154,15 @@ impl ChannelActorState {
);
Ok((tx, message))
} else {
debug!(
"Final balance partition before shutting down: local {} (fee {}), remote {} (fee {})",
self.to_local_amount, local_shutdown_fee,
self.to_remote_amount, remote_shutdown_fee
);
let local_value = (self.to_local_amount - local_shutdown_fee) as u64;
let remote_value = (self.to_remote_amount - remote_shutdown_fee) as u64;
debug!(
"Building shutdown transaction with values: {} {}",
"Building shutdown transaction with values: local {}, remote {}",
local_value, remote_value
);
let local_output = CellOutput::new_builder()
Expand Down

0 comments on commit 45cb8e4

Please sign in to comment.