mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-17 22:24:21 +01:00
routing: use Identifier in place of PaymentHash
Since we want to support AMP payment using a different unique payment identifier (AMP payments don't go to one specific hash), we change the nomenclature to be Identifier instead of PaymentHash.
This commit is contained in:
@@ -4419,7 +4419,6 @@ func (r *rpcServer) dispatchPaymentIntent(
|
||||
FinalCLTVDelta: payIntent.cltvDelta,
|
||||
FeeLimit: payIntent.feeLimit,
|
||||
CltvLimit: payIntent.cltvLimit,
|
||||
PaymentHash: payIntent.rHash,
|
||||
RouteHints: payIntent.routeHints,
|
||||
OutgoingChannelIDs: payIntent.outgoingChannelIDs,
|
||||
LastHop: payIntent.lastHop,
|
||||
@@ -4433,6 +4432,10 @@ func (r *rpcServer) dispatchPaymentIntent(
|
||||
// Users need to use routerrpc for that.
|
||||
MaxParts: 1,
|
||||
}
|
||||
err := payment.SetPaymentHash(payIntent.rHash)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
preImage, route, routerErr = r.server.chanRouter.SendPayment(
|
||||
payment,
|
||||
|
||||
Reference in New Issue
Block a user