From df63ea47835af6c61dbf37933707752ed06812c1 Mon Sep 17 00:00:00 2001 From: thomash-acinq <81159533+thomash-acinq@users.noreply.github.com> Date: Wed, 13 Oct 2021 13:52:14 +0200 Subject: [PATCH] Deprecation warning for relay fees config (#2012) Add deprecation warning for relay fees config and update release notes --- docs/release-notes/eclair-v0.6.2.md | 2 ++ eclair-core/src/main/scala/fr/acinq/eclair/NodeParams.scala | 2 ++ .../fr/acinq/eclair/integration/PaymentIntegrationSpec.scala | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/release-notes/eclair-v0.6.2.md b/docs/release-notes/eclair-v0.6.2.md index 5ab24238c7..1b7cc82c5d 100644 --- a/docs/release-notes/eclair-v0.6.2.md +++ b/docs/release-notes/eclair-v0.6.2.md @@ -36,6 +36,8 @@ Relay fees are now set per node instead of per channel: Note that you can use the `updaterelayfee` API *before* opening a channel to ensure that the channel doesn't use the default relay fees from `eclair.conf`. +The config for default fees has also be changed to allow different default fees for announced/unannounced channels: `fee-base-msat`/`fee-proportional-millionths` are now nested inside `relay.fees.public-channels`/`relay.fees.private-channels`. + :warning: When updating eclair, the relay fees for your existing channels will be reset to the value from your `eclair.conf`. You should use the `updaterelayfee` API to reconfigure relay fees if you don't want to use the default fees for every node you're connected to. ### Beta support for anchor outputs diff --git a/eclair-core/src/main/scala/fr/acinq/eclair/NodeParams.scala b/eclair-core/src/main/scala/fr/acinq/eclair/NodeParams.scala index 289f4955e5..37fff15cc1 100644 --- a/eclair-core/src/main/scala/fr/acinq/eclair/NodeParams.scala +++ b/eclair-core/src/main/scala/fr/acinq/eclair/NodeParams.scala @@ -202,6 +202,8 @@ object NodeParams extends Logging { "enable-db-backup" -> "file-backup.enabled", "backup-notify-script" -> "file-backup.notify-script", // v0.6.2 + "fee-base-msat" -> "relay.fees.public-channels.fee-base-msat", + "fee-proportional-millionths" -> "relay.fees.public-channels.fee-proportional-millionths", "router.randomize-route-selection" -> "router.path-finding.default.randomize-route-selection", "router.path-finding.max-route-length" -> "router.path-finding.default.boundaries.max-route-length", "router.path-finding.max-cltv" -> "router.path-finding.default.boundaries.max-cltv", diff --git a/eclair-core/src/test/scala/fr/acinq/eclair/integration/PaymentIntegrationSpec.scala b/eclair-core/src/test/scala/fr/acinq/eclair/integration/PaymentIntegrationSpec.scala index 256e2299c9..1349d7b9d9 100644 --- a/eclair-core/src/test/scala/fr/acinq/eclair/integration/PaymentIntegrationSpec.scala +++ b/eclair-core/src/test/scala/fr/acinq/eclair/integration/PaymentIntegrationSpec.scala @@ -65,7 +65,7 @@ class PaymentIntegrationSpec extends IntegrationSpec { instantiateEclairNode("D", ConfigFactory.parseMap(Map("eclair.node-alias" -> "D", "eclair.expiry-delta-blocks" -> 133, "eclair.server.port" -> 29733, "eclair.api.port" -> 28083, "eclair.trampoline-payments-enable" -> true).asJava).withFallback(commonFeatures).withFallback(commonConfig)) instantiateEclairNode("E", ConfigFactory.parseMap(Map("eclair.node-alias" -> "E", "eclair.expiry-delta-blocks" -> 134, "eclair.server.port" -> 29734, "eclair.api.port" -> 28084).asJava).withFallback(withAnchorOutputsZeroFeeHtlcTxs).withFallback(commonConfig)) instantiateEclairNode("F", ConfigFactory.parseMap(Map("eclair.node-alias" -> "F", "eclair.expiry-delta-blocks" -> 135, "eclair.server.port" -> 29735, "eclair.api.port" -> 28085, "eclair.trampoline-payments-enable" -> true).asJava).withFallback(withWumbo).withFallback(commonConfig)) - instantiateEclairNode("G", ConfigFactory.parseMap(Map("eclair.node-alias" -> "G", "eclair.expiry-delta-blocks" -> 136, "eclair.server.port" -> 29736, "eclair.api.port" -> 28086, "eclair.fee-base-msat" -> 1010, "eclair.fee-proportional-millionths" -> 102, "eclair.trampoline-payments-enable" -> true).asJava).withFallback(commonConfig)) + instantiateEclairNode("G", ConfigFactory.parseMap(Map("eclair.node-alias" -> "G", "eclair.expiry-delta-blocks" -> 136, "eclair.server.port" -> 29736, "eclair.api.port" -> 28086, "eclair.relay.fees.public-channels.fee-base-msat" -> 1010, "eclair.relay.fees.public-channels.fee-proportional-millionths" -> 102, "eclair.trampoline-payments-enable" -> true).asJava).withFallback(commonConfig)) } test("connect nodes") {