rpcserver: add time_lock_delta overflow check

This commit is contained in:
Eval EXEC
2023-02-18 11:53:27 +08:00
parent 3dc4ab736f
commit cbcbddfe29
6 changed files with 48 additions and 8 deletions

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