From 9c178f3d7f6db36b05a6a76cc5731b383fc561e0 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Sat, 28 Apr 2018 23:19:48 -0700 Subject: [PATCH] htlcswitch/link_test: use hodl ExitSettle instead of HodlHTLC --- htlcswitch/link_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htlcswitch/link_test.go b/htlcswitch/link_test.go index 699773ed..1454847e 100644 --- a/htlcswitch/link_test.go +++ b/htlcswitch/link_test.go @@ -19,6 +19,7 @@ import ( "github.com/lightningnetwork/lnd/chainntnfs" "github.com/lightningnetwork/lnd/channeldb" "github.com/lightningnetwork/lnd/contractcourt" + "github.com/lightningnetwork/lnd/htlcswitch/hodl" "github.com/lightningnetwork/lnd/lnwallet" "github.com/lightningnetwork/lnd/lnwire" "github.com/roasbeef/btcd/btcec" @@ -1704,9 +1705,9 @@ func TestChannelLinkBandwidthConsistency(t *testing.T) { aliceMsgs = coreLink.cfg.Peer.(*mockPeer).sentMsgs ) - // We put Alice into HodlHTLC mode, such that she won't settle + // We put Alice into hodl.ExitSettle mode, such that she won't settle // incoming HTLCs automatically. - coreLink.cfg.HodlHTLC = true + coreLink.cfg.HodlMask = hodl.MaskFromFlags(hodl.ExitSettle) coreLink.cfg.DebugHTLC = true estimator := &lnwallet.StaticFeeEstimator{