Skip to content

Commit a96ac83

Browse files
committed
Log full signed remote commitment transaction hex in channel
This is useful when rebuilding the full_stack_target test vector
1 parent fef0cb1 commit a96ac83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/ln/channel.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3898,7 +3898,8 @@ impl<ChanSigner: ChannelKeys> Channel<ChanSigner> {
38983898
signature = res.0;
38993899
htlc_signatures = res.1;
39003900

3901-
log_trace!(logger, "Signed remote commitment tx {} with redeemscript {} -> {}",
3901+
log_trace!(logger, "Signed remote commitment tx {} (txid {}) with redeemscript {} -> {}",
3902+
encode::serialize_hex(&counterparty_commitment_tx.0.trust().built_transaction().transaction),
39023903
&counterparty_commitment_txid,
39033904
encode::serialize_hex(&self.get_funding_redeemscript()),
39043905
log_bytes!(signature.serialize_compact()[..]));

0 commit comments

Comments
 (0)