Skip to content

Commit 2e2a573

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 b035377 commit 2e2a573

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
@@ -4095,7 +4095,8 @@ impl<Signer: Sign> Channel<Signer> {
40954095
signature = res.0;
40964096
htlc_signatures = res.1;
40974097

4098-
log_trace!(logger, "Signed remote commitment tx {} with redeemscript {} -> {}",
4098+
log_trace!(logger, "Signed remote commitment tx {} (txid {}) with redeemscript {} -> {}",
4099+
encode::serialize_hex(&counterparty_commitment_tx.0.trust().built_transaction().transaction),
40994100
&counterparty_commitment_txid,
41004101
encode::serialize_hex(&self.get_funding_redeemscript()),
41014102
log_bytes!(signature.serialize_compact()[..]));

0 commit comments

Comments
 (0)