Skip to content

Commit fb7fc69

Browse files
authored
Merge pull request #346 from ariard/log_trace_remote_local_outp
Add log_trace on to_remote/to_local inclusion in commitment tx
2 parents a02d70d + 8e198bb commit fb7fc69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ln/channel.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,7 @@ impl Channel {
913913
let value_to_b = if local { value_to_remote } else { value_to_self };
914914

915915
if value_to_a >= (dust_limit_satoshis as i64) {
916+
log_trace!(self, " ...including {} output with value {}", if local { "to_local" } else { "to_remote" }, value_to_a);
916917
txouts.push((TxOut {
917918
script_pubkey: chan_utils::get_revokeable_redeemscript(&keys.revocation_key,
918919
if local { self.their_to_self_delay } else { BREAKDOWN_TIMEOUT },
@@ -922,6 +923,7 @@ impl Channel {
922923
}
923924

924925
if value_to_b >= (dust_limit_satoshis as i64) {
926+
log_trace!(self, " ...including {} output with value {}", if local { "to_remote" } else { "to_local" }, value_to_b);
925927
txouts.push((TxOut {
926928
script_pubkey: Builder::new().push_opcode(opcodes::all::OP_PUSHBYTES_0)
927929
.push_slice(&Hash160::hash(&keys.b_payment_key.serialize())[..])

0 commit comments

Comments
 (0)