lnrpc: add wire records fields to payment+interceptor RPCs

This commit is contained in:
George Tsagkarelis
2024-04-16 11:03:59 +02:00
committed by Oliver Gugger
parent ef2c9801fb
commit 857a16d838
9 changed files with 902 additions and 681 deletions

View File

@@ -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)