mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loopin: add loop-in constants to filter expired deposits
This commit is contained in:
parent
e70d347ae9
commit
9f57c8ee01
1 changed files with 11 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue