mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-05 17:05:50 +02:00
multi: make validation for keysend stricter
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user