multi: make validation for keysend stricter

This commit is contained in:
ziggie
2025-03-25 01:21:57 -05:00
parent 5d921723b1
commit 013e408abe
5 changed files with 71 additions and 1 deletions

View File

@@ -1247,6 +1247,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
}