rpcserver: add time_lock_delta overflow check

This commit is contained in:
Eval EXEC committed 2023-03-23 21:34:12 +08:00
1 parent 3dc4ab736f
commit cbcbddfe29
6 files changed
+48 -8

No files matched your search

+4
View File
@@ -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