chainregistry: set static min relay fee

We need it to be set in order to properly test the sweeper handling the
dust limit on regtest.
This commit is contained in:
Joost Jager 2019-12-10 13:58:15 +01:00
parent 843b974d66
commit 8c43232f66
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

@ -58,6 +58,10 @@ const (
// expressed in sat/kw. // expressed in sat/kw.
defaultBitcoinStaticFeePerKW = chainfee.SatPerKWeight(12500) defaultBitcoinStaticFeePerKW = chainfee.SatPerKWeight(12500)
// defaultBitcoinStaticMinRelayFeeRate is the min relay fee used for
// static estimators.
defaultBitcoinStaticMinRelayFeeRate = chainfee.FeePerKwFloor
// defaultLitecoinStaticFeePerKW is the fee rate of 200 sat/vbyte // defaultLitecoinStaticFeePerKW is the fee rate of 200 sat/vbyte
// expressed in sat/kw. // expressed in sat/kw.
defaultLitecoinStaticFeePerKW = chainfee.SatPerKWeight(50000) defaultLitecoinStaticFeePerKW = chainfee.SatPerKWeight(50000)
@ -163,7 +167,8 @@ func newChainControlFromConfig(cfg *config, chanDB *channeldb.DB,
TimeLockDelta: cfg.Bitcoin.TimeLockDelta, TimeLockDelta: cfg.Bitcoin.TimeLockDelta,
} }
cc.feeEstimator = chainfee.NewStaticEstimator( cc.feeEstimator = chainfee.NewStaticEstimator(
defaultBitcoinStaticFeePerKW, 0, defaultBitcoinStaticFeePerKW,
defaultBitcoinStaticMinRelayFeeRate,
) )
case litecoinChain: case litecoinChain:
cc.routingPolicy = htlcswitch.ForwardingPolicy{ cc.routingPolicy = htlcswitch.ForwardingPolicy{