Log full signed remote commitment transaction hex in channel
authorMatt Corallo <git@bluematt.me>
Fri, 19 Feb 2021 01:02:06 +0000 (20:02 -0500)
committerMatt Corallo <git@bluematt.me>
Sat, 27 Feb 2021 04:47:03 +0000 (23:47 -0500)
This is useful when rebuilding the full_stack_target test vector

lightning/src/ln/channel.rs

index 1fc0d8b3cd6bb263b859886e1463c294495e194f..d9c7fc5ad27b049d24dbe55882c3a21a0fc983ca 100644 (file)
@@ -4087,7 +4087,8 @@ impl<Signer: Sign> Channel<Signer> {
                        signature = res.0;
                        htlc_signatures = res.1;
 
-                       log_trace!(logger, "Signed remote commitment tx {} with redeemscript {} -> {}",
+                       log_trace!(logger, "Signed remote commitment tx {} (txid {}) with redeemscript {} -> {}",
+                               encode::serialize_hex(&counterparty_commitment_tx.0.trust().built_transaction().transaction),
                                &counterparty_commitment_txid,
                                encode::serialize_hex(&self.get_funding_redeemscript()),
                                log_bytes!(signature.serialize_compact()[..]));