mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 06:01:48 +02:00
rpcserver: add time_lock_delta
overflow check
This commit is contained in:
@@ -98,6 +98,10 @@ const (
|
||||
// HTLCs on our channels.
|
||||
minTimeLockDelta = routing.MinCLTVDelta
|
||||
|
||||
// MaxTimeLockDelta is the maximum CLTV delta that can be applied to
|
||||
// forwarded HTLCs.
|
||||
MaxTimeLockDelta = routing.MaxCLTVDelta
|
||||
|
||||
// defaultAcceptorTimeout is the time after which an RPCAcceptor will time
|
||||
// out and return false if it hasn't yet received a response.
|
||||
defaultAcceptorTimeout = 15 * time.Second
|
||||
|
Reference in New Issue
Block a user