watchtower/wtpolicy/policy: bump default fee rate to 10 sat/byte

This commit is contained in:
Conner Fromknecht 2019-07-01 13:05:13 -07:00
parent 05107ce969
commit 4b549cb43c
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7
2 changed files with 4 additions and 4 deletions

@ -1058,8 +1058,8 @@ var clientTests = []clientTest{
// less expensive than one that sweeps both. // less expensive than one that sweeps both.
name: "send and recv", name: "send and recv",
cfg: harnessCfg{ cfg: harnessCfg{
localBalance: 10000001, // ensure (% amt != 0) localBalance: 100000001, // ensure (% amt != 0)
remoteBalance: 20000001, // ensure (% amt != 0) remoteBalance: 200000001, // ensure (% amt != 0)
policy: wtpolicy.Policy{ policy: wtpolicy.Policy{
TxPolicy: wtpolicy.TxPolicy{ TxPolicy: wtpolicy.TxPolicy{
BlobType: blob.TypeAltruistCommit, BlobType: blob.TypeAltruistCommit,
@ -1071,7 +1071,7 @@ var clientTests = []clientTest{
fn: func(h *testHarness) { fn: func(h *testHarness) {
var ( var (
capacity = h.cfg.localBalance + h.cfg.remoteBalance capacity = h.cfg.localBalance + h.cfg.remoteBalance
paymentAmt = lnwire.MilliSatoshi(200000) paymentAmt = lnwire.MilliSatoshi(2000000)
numSends = uint64(h.cfg.localBalance / paymentAmt) numSends = uint64(h.cfg.localBalance / paymentAmt)
numRecvs = uint64(capacity / paymentAmt) numRecvs = uint64(capacity / paymentAmt)
numUpdates = numSends + numRecvs // 200 updates numUpdates = numSends + numRecvs // 200 updates

@ -27,7 +27,7 @@ const (
// DefaultSweepFeeRate specifies the fee rate used to construct justice // DefaultSweepFeeRate specifies the fee rate used to construct justice
// transactions. The value is expressed in satoshis per kilo-weight. // 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 // MinSweepFeeRate is the minimum sweep fee rate a client may use in its
// policy, the current value is 4 sat/kw. // policy, the current value is 4 sat/kw.