|
|
|
@ -67,8 +67,6 @@ const (
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
var ( |
|
|
|
|
zeroHash [32]byte |
|
|
|
|
|
|
|
|
|
// MaxPaymentMSat is the maximum allowed payment currently permitted as
|
|
|
|
|
// defined in BOLT-002. This value depends on which chain is active.
|
|
|
|
|
// It is set to the value under the Bitcoin chain as default.
|
|
|
|
@ -3018,7 +3016,9 @@ func extractPaymentIntent(rpcPayReq *rpcPaymentRequest) (rpcPaymentIntent, error
|
|
|
|
|
// If we're in debug HTLC mode, then all outgoing HTLCs will pay to the
|
|
|
|
|
// same debug rHash. Otherwise, we pay to the rHash specified within
|
|
|
|
|
// the RPC request.
|
|
|
|
|
case cfg.DebugHTLC && bytes.Equal(payIntent.rHash[:], zeroHash[:]): |
|
|
|
|
case cfg.DebugHTLC && |
|
|
|
|
bytes.Equal(payIntent.rHash[:], lntypes.ZeroHash[:]): |
|
|
|
|
|
|
|
|
|
copy(payIntent.rHash[:], invoices.DebugHash[:]) |
|
|
|
|
|
|
|
|
|
default: |
|
|
|
|