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:
17 files changed
+296
-245
No files matched your search
@@ -152,6 +152,11 @@ func (c *integratedRoutingContext) testPayment(maxParts uint32,
|
||||
MaxParts: maxParts,
|
||||
}
|
||||
|
||||
var paymentHash [32]byte
|
||||
if err := payment.SetPaymentHash(paymentHash); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if c.maxShardAmt != nil {
|
||||
payment.MaxShardAmt = c.maxShardAmt
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user