Skip to content

Commit 9f57c8e

Browse files
committed
loopin: add loop-in constants to filter expired deposits
1 parent e70d347 commit 9f57c8e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

staticaddr/loopin/interface.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ import (
1515
"github.com/lightningnetwork/lnd/zpay32"
1616
)
1717

18+
const (
19+
// DefaultLoopInOnChainCltvDelta is the time lock relative to current
20+
// block height that swap server will accept on the swap initiation
21+
// call.
22+
DefaultLoopInOnChainCltvDelta = 1000
23+
24+
// DepositHtlcDelta is a safety buffer of blocks that needs to exist
25+
// between the deposit expiry height and the htlc expiry height.
26+
DepositHtlcDelta = 50
27+
)
28+
1829
type (
1930
// ValidateLoopInContract validates the contract parameters against our
2031
// request.

0 commit comments

Comments
 (0)