loopin: add loop-in constants to filter expired deposits

This commit is contained in:
Slyghtning 2025-10-08 09:41:58 +02:00
parent e70d347ae9
commit 9f57c8ee01
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF

View file

@ -15,6 +15,17 @@ import (
"github.com/lightningnetwork/lnd/zpay32"
)
const (
// DefaultLoopInOnChainCltvDelta is the time lock relative to current
// block height that swap server will accept on the swap initiation
// call.
DefaultLoopInOnChainCltvDelta = 1000
// DepositHtlcDelta is a safety buffer of blocks that needs to exist
// between the deposit expiry height and the htlc expiry height.
DepositHtlcDelta = 50
)
type (
// ValidateLoopInContract validates the contract parameters against our
// request.