Skip to content

Commit

Permalink
Make PluginParams a simple trait (#1643)
Browse files Browse the repository at this point in the history
Otherwise we can't extend it in other projects.
  • Loading branch information
pm47 committed Dec 16, 2020
1 parent 413ee29 commit 9425fd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import fr.acinq.eclair.channel.Origin
import fr.acinq.eclair.payment.relay.PostRestartHtlcCleaner.IncomingHtlc

/** Custom plugin parameters. */
sealed trait PluginParams {
trait PluginParams {
/** Plugin's friendly name. */
def name: String
}
Expand Down
2 changes: 1 addition & 1 deletion eclair-core/src/main/scala/fr/acinq/eclair/Setup.scala
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class Setup(datadir: File,
}

val nodeParams = NodeParams.makeNodeParams(config, instanceId, nodeKeyManager, channelKeyManager, initTor(), databases, blockCount, feeEstimator, pluginParams)
pluginParams.foreach(param => logger.info(s"Using plugin: ${param.name}"))
pluginParams.foreach(param => logger.info(s"using plugin=${param.name}"))

val serverBindingAddress = new InetSocketAddress(
config.getString("server.binding-ip"),
Expand Down

0 comments on commit 9425fd4

Please sign in to comment.