From 14d669dfd104cec19af916439b7c0d8e1d1e4052 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 12 Jul 2016 17:30:55 -0700 Subject: [PATCH] lnwallet: decrease initial revocation window to 4 --- lnwallet/channel.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 5829e7229..f39c1bf4d 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -25,12 +25,18 @@ var ( ) const ( - // MaxPendingPayments + // MaxPendingPayments is the max number of pending HTLC's permitted on + // a channel. // TODO(roasbeef): make not random value + enforce + // * should be tuned to account for max tx "cost" MaxPendingPayments = 100 - // InitialRevocationWindow... - InitialRevocationWindow = 16 + // InitialRevocationWindow is the number of unrevoked commitment + // transactions allowed within the commitment chain. This value allows + // a greater degree of desynchronization by allowing either parties to + // extend the other's commitment chain non-interactively, and also + // serves as a flow control mechanism to a degree. + InitialRevocationWindow = 4 ) // channelState is an enum like type which represents the current state of a