mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-09 20:32:38 +02:00
lnrpc: add wire records fields to payment+interceptor RPCs
This commit is contained in:
committed by
Oliver Gugger
parent
ef2c9801fb
commit
857a16d838
@@ -858,6 +858,12 @@ func (r *RouterBackend) extractIntentFromSendRequest(
|
||||
}
|
||||
payIntent.DestCustomRecords = customRecords
|
||||
|
||||
firstHopRecords := lnwire.CustomRecords(rpcPayReq.FirstHopCustomRecords)
|
||||
if err := firstHopRecords.Validate(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
payIntent.FirstHopCustomRecords = firstHopRecords
|
||||
|
||||
payIntent.PayAttemptTimeout = time.Second *
|
||||
time.Duration(rpcPayReq.TimeoutSeconds)
|
||||
|
||||
|
Reference in New Issue
Block a user