Merge pull request #14 from ziggie1984/bugfix-htlcevent

bugfix htlcevent
This commit is contained in:
calle
2023-01-20 14:23:01 +01:00
committed by GitHub

View File

@@ -38,6 +38,7 @@ func (app *App) getHtlcForwardEvent(ctx context.Context, event *routerrpc.Forwar
channelEdgeTo, err := app.lnd.getPubKeyFromChannel(ctx, event.OutgoingRequestedChanId)
if err != nil {
log.Errorf("[forward] Error getting pubkey for channel %s", ParseChannelID(event.OutgoingRequestedChanId))
return types.HtlcForwardEvent{}, err
}
if channelEdgeTo.Node1Pub != app.myInfo.IdentityPubkey {
pubkeyTo = channelEdgeTo.Node1Pub