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 2017-09-12 18:08:41 +02:00
parent 769abb87ea
commit 3d95efdc0f
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -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 {