Merge pull request #9626 from ziggie1984/payment-lifecycle-small-fix

payment lifecycle small fix
This commit is contained in:
Oliver Gugger authored and GitHub committed 2025-03-25 08:15:48 -06:00
commit cf35be847c
6 files changed
+75 -1

No files matched your search

+2
View File
@@ -1255,6 +1255,8 @@ func (r *ChannelRouter) sendPayment(ctx context.Context,
}
// Validate the custom records before we attempt to send the payment.
// TODO(ziggie): Move this check before registering the payment in the
// db (InitPayment).
if err := firstHopCustomRecords.Validate(); err != nil {
return [32]byte{}, nil, err
}