Skip to content

Commit 4f04b2a

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 7e4b623 commit 4f04b2a

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
@@ -4098,7 +4098,8 @@ impl<ChanSigner: ChannelKeys> Channel<ChanSigner> {
40984098
signature = res.0;
40994099
htlc_signatures = res.1;
41004100

4101-
log_trace!(logger, "Signed remote commitment tx {} with redeemscript {} -> {}",
4101+
log_trace!(logger, "Signed remote commitment tx {} (txid {}) with redeemscript {} -> {}",
4102+
encode::serialize_hex(&counterparty_commitment_tx.0.trust().built_transaction().transaction),
41024103
&counterparty_commitment_txid,
41034104
encode::serialize_hex(&self.get_funding_redeemscript()),
41044105
log_bytes!(signature.serialize_compact()[..]));

0 commit comments

Comments
 (0)