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:
parent
843b974d66
commit
8c43232f66
@ -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{
|
||||||
|
Loading…
Reference in New Issue
Block a user