From 4b549cb43c83c41ced9f900516c57fe390a25ca6 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Mon, 1 Jul 2019 13:05:13 -0700 Subject: [PATCH] watchtower/wtpolicy/policy: bump default fee rate to 10 sat/byte --- watchtower/wtclient/client_test.go | 6 +++--- watchtower/wtpolicy/policy.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/watchtower/wtclient/client_test.go b/watchtower/wtclient/client_test.go index 1bdc6dda..85478ae2 100644 --- a/watchtower/wtclient/client_test.go +++ b/watchtower/wtclient/client_test.go @@ -1058,8 +1058,8 @@ var clientTests = []clientTest{ // less expensive than one that sweeps both. name: "send and recv", cfg: harnessCfg{ - localBalance: 10000001, // ensure (% amt != 0) - remoteBalance: 20000001, // ensure (% amt != 0) + localBalance: 100000001, // ensure (% amt != 0) + remoteBalance: 200000001, // ensure (% amt != 0) policy: wtpolicy.Policy{ TxPolicy: wtpolicy.TxPolicy{ BlobType: blob.TypeAltruistCommit, @@ -1071,7 +1071,7 @@ var clientTests = []clientTest{ fn: func(h *testHarness) { var ( capacity = h.cfg.localBalance + h.cfg.remoteBalance - paymentAmt = lnwire.MilliSatoshi(200000) + paymentAmt = lnwire.MilliSatoshi(2000000) numSends = uint64(h.cfg.localBalance / paymentAmt) numRecvs = uint64(capacity / paymentAmt) numUpdates = numSends + numRecvs // 200 updates diff --git a/watchtower/wtpolicy/policy.go b/watchtower/wtpolicy/policy.go index 163c1f1e..6fbf71a9 100644 --- a/watchtower/wtpolicy/policy.go +++ b/watchtower/wtpolicy/policy.go @@ -27,7 +27,7 @@ const ( // DefaultSweepFeeRate specifies the fee rate used to construct justice // transactions. The value is expressed in satoshis per kilo-weight. - DefaultSweepFeeRate = lnwallet.SatPerKWeight(12000) + DefaultSweepFeeRate = lnwallet.SatPerKWeight(40000) // MinSweepFeeRate is the minimum sweep fee rate a client may use in its // policy, the current value is 4 sat/kw.