From 3d95efdc0f8945dc4668c3fdf36fea446013a0e1 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 12 Sep 2017 18:08:41 +0200 Subject: [PATCH] htlcswitch: use %x when printing the payment hash of an HTLC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We use %x as it’ll hex-encode the raw bytes, instead of printing the individual integers within the byte array. --- htlcswitch/switch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htlcswitch/switch.go b/htlcswitch/switch.go index 24bf3386..4c74ecfc 100644 --- a/htlcswitch/switch.go +++ b/htlcswitch/switch.go @@ -390,7 +390,7 @@ func (s *Switch) handleLocalDispatch(payment *pendingPayment, packet *htlcPacket failure, err := payment.deobfuscator.Deobfuscate(htlc.Reason) if err != nil { userErr = errors.Errorf("unable to de-obfuscate "+ - "onion failure, htlc with hash(%v): %v", + "onion failure, htlc with hash(%x): %v", payment.paymentHash[:], err) log.Error(userErr) } else {