Help with Plugins #2341
Replies: 2 comments 8 replies
-
Regarding the final File datadir = new File(System.getProperty("user.home"), "foobar");
final Set<PluginParams> params = new HashSet<>();
final Option none = None$.MODULE$;
final ActorSystem system = ActorSystem.apply("system");
final Setup setup = new Setup(
datadir,
JavaConverters.asScala(params).toSeq(),
none, // you'll get type check warnings there, but it should work
none,
system
);
... Though AFAICT creating a |
Beta Was this translation helpful? Give feedback.
-
Thanks again for helping me out @dpad85 The first part of what I wanted to do is working just fine. I would now like to use this channel probability in rout finding. I guess this would be the simplest solution:
If you have any suggestions on how to make it simpler, it would be appreciated |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I'm currently trying to write a plugin for eclair.
The plugin is in Java and I've managed to setup the project with all the dependencies.
I've so far only implemented a small par in the onSetup function to read the datadir form the Setup and then load the plugin config.
I wanted to test if the plugin could be loaded and read the config.
But as I don’t want to boot up a real node every time I want to do some small tests. I’ve tried to make a test class that calls the functions defined of the interface to check if they work.
But the parameters that get passed into those functions (e.g. the Setup object) are not trivial and I am not familiar with scala.
So I really struggle to create a proper Setup object to pass into the first function for testing.
I’ve looked through the source of the project if there are any mokup node setups for testing, but did not find it.
I would appreciate some pointers on how to test my plugin without loading it by a real node.
Beta Was this translation helpful? Give feedback.
All reactions