From 40a7523b8f001f636deac423c6573b1a58b64034 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 15 May 2017 17:50:56 -0700 Subject: [PATCH] routing: fix incorrect logging fmt directive, log chanPoint for undo fetch failure --- routing/router.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/routing/router.go b/routing/router.go index a0c945c4..2a9459aa 100644 --- a/routing/router.go +++ b/routing/router.go @@ -593,7 +593,8 @@ func (r *ChannelRouter) processUpdate(msg interface{}) error { channelID.BlockHeight) if err != nil { return errors.Errorf("unable to fetch utxo for "+ - "chan_id=%v: %v", msg.ChannelID, err) + "chan_id=%v, chan_point=%v: %v", msg.ChannelID, + fundingPoint, err) } // Recreate witness output to be sure that declared in channel @@ -615,8 +616,8 @@ func (r *ChannelRouter) processUpdate(msg interface{}) error { // channel edge and also that the announced channel value is // right. if !bytes.Equal(witnessOutput.PkScript, chanUtxo.PkScript) { - return errors.Errorf("pkScript mismatch: expected %v, "+ - "got %v", witnessOutput.PkScript, chanUtxo.PkScript) + return errors.Errorf("pkScript mismatch: expected %x, "+ + "got %x", witnessOutput.PkScript, chanUtxo.PkScript) } // TODO(roasbeef): this is a hack, needs to be removed