From 8cecdc54cfecc1bde51f555a9a66c5e8f165aecb Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Wed, 14 Mar 2018 14:54:04 -0700 Subject: [PATCH] fundingmanager: adds default ltc funding constraints --- fundingmanager.go | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/fundingmanager.go b/fundingmanager.go index d27087ed..607a91e7 100644 --- a/fundingmanager.go +++ b/fundingmanager.go @@ -42,12 +42,19 @@ const ( // TODO(roasbeef): add command line param to modify maxFundingAmount = btcutil.Amount(1 << 24) - // minRemoteDelay and maxRemoteDelay is the extremes of the CSV delay - // we will require the remote to use for its commitment transaction. - // The actual delay we will require will be somewhere between these - // values, depending on channel size. - minRemoteDelay = 144 - maxRemoteDelay = 2016 + // minBtcRemoteDelay and maxBtcRemoteDelay is the extremes of the + // Bitcoin CSV delay we will require the remote to use for its + // commitment transaction. The actual delay we will require will be + // somewhere between these values, depending on channel size. + minBtcRemoteDelay uint16 = 144 + maxBtcRemoteDelay uint16 = 2016 + + // minLtcRemoteDelay and maxLtcRemoteDelay is the extremes of the + // Litecoin CSV delay we will require the remote to use for its + // commitment transaction. The actual delay we will require will be + // somewhere between these values, depending on channel size. + minLtcRemoteDelay uint16 = 576 + maxLtcRemoteDelay uint16 = 8064 // maxWaitNumBlocksFundingConf is the maximum number of blocks to wait // for the funding transaction to be confirmed before forgetting about