htlcswitch: use %x when printing the payment hash of an HTLC

We use %x as it’ll hex-encode the raw bytes, instead of printing the
individual integers within the byte array.
This commit is contained in:
Olaoluwa Osuntokun committed 2017-09-12 18:08:50 +02:00
1 parent 769abb87ea
commit 3d95efdc0f
1 file changed
+1 -1
+1 -1
View File
@@ -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 {