routing: add new error for invalid funding tx rejection

This commit is contained in:
Olaoluwa Osuntokun committed 2021-05-03 19:06:52 -07:00
1 parent 0dc6f8058d
commit 897a19d9df
2 files changed
+7 -2

No files matched your search

+3 -2
View File
@@ -1309,8 +1309,9 @@ func (r *ChannelRouter) processUpdate(msg interface{},
channelID := lnwire.NewShortChanIDFromInt(msg.ChannelID)
fundingTx, err := r.fetchFundingTx(&channelID)
if err != nil {
return errors.Errorf("unable to fetch funding tx for "+
"chan_id=%v: %v", msg.ChannelID, err)
return newErrf(ErrNoFundingTransaction, "unable to "+
"fetch funding tx for chan_id=%v: %v",
msg.ChannelID, err)
}
// Recreate witness output to be sure that declared in channel