routing: fix incorrect logging fmt directive, log chanPoint for undo fetch failure
This commit is contained in:
parent
1b83c6ae16
commit
40a7523b8f
@ -593,7 +593,8 @@ func (r *ChannelRouter) processUpdate(msg interface{}) error {
|
|||||||
channelID.BlockHeight)
|
channelID.BlockHeight)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Errorf("unable to fetch utxo for "+
|
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
|
// 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
|
// channel edge and also that the announced channel value is
|
||||||
// right.
|
// right.
|
||||||
if !bytes.Equal(witnessOutput.PkScript, chanUtxo.PkScript) {
|
if !bytes.Equal(witnessOutput.PkScript, chanUtxo.PkScript) {
|
||||||
return errors.Errorf("pkScript mismatch: expected %v, "+
|
return errors.Errorf("pkScript mismatch: expected %x, "+
|
||||||
"got %v", witnessOutput.PkScript, chanUtxo.PkScript)
|
"got %x", witnessOutput.PkScript, chanUtxo.PkScript)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(roasbeef): this is a hack, needs to be removed
|
// TODO(roasbeef): this is a hack, needs to be removed
|
||||||
|
Loading…
Reference in New Issue
Block a user