Comments (3)
Hey @orbitalturtle I haven't done this myself but it should be possible. Off the top of my head, I can think of two approaches that may work.
- Create a custom docker image which includes your plugin's
.jar
file in the image and add the new image in Polar. Create a new network including one or more nodes which use your custom image. Before starting the network, edit the command line args by right-clicking on the node then clicking on Advanced Options. In here you should be able to include the path to your.jar
file to the startup command. Just make sure you use the path within the docker image's file system. - I'm not sure if this will work, but it may be worth a try as it doesn't require creating a custom Docker image. First create a new network with just and bitcoind and an Eclair node. Start the network one then stop it after the nodes successfully start up. On your machine's file system, open up the dir
~/.polar/networks/1/volumes/eclair/alice/
and you should see a bunch of files that Eclair creates on startup. This dir maps to the path/home/eclair/.eclair
inside of the Docker container that the Eclair node runs in. Copy your.jar
file into this folder. Back in Polar, right-click on the Eclair node and click Advanced Options. Pre-fill the default command and add the arg/home/eclair/.eclair/<plugin1.jar>
using the actual name of your plugin.jar
file. Save the options then try to start the network. Check the logs for the eclair node to see if it loads the plugin successfully or fails.
I hope this helps point you in the right direction. If you have any further questions, please feel free to reply here.
from polar.
Thank you @jamaljsr! The first option worked for me with a couple of changes. Figure I'll outline what I did if this is helpful for anyone else:
- In addition to copying the plugin jar via the Dockerfile, I needed to make a few updates to the custom Docker image for the latest version of Eclair. Eclair-node-gui is now eclair-front, and maybe one or two other small things IIRC. (I'd be happy to add these updates in a PR if that sounds helpful.)
- Initially I tried loading the BOLT 12 plugin jar to /home/eclair in the docker filesystem. Weirdly, loading the BOLT 12 plugin as I normally would,
i.e. polar-eclair /home/eclair/bolt12-tip-jar-0.9.1-SNAPSHOT.jar ...<CONFIG_OPTIONS>
, it wasn't detected by eclair. Once I added the necessary config options, it still didn't seem to detect that I was passing in a plugin jar, BUT Eclair errored saying it expected the plugin to be located at/app/offer
. So if I changedbolt12-tip-jar-0.9.1-SNAPSHOT.jar
tooffer
and moved it to the/app
folder, it worked just fine.
from polar.
Awesome! I'm glad you were able to get it working. Thanks for sharing how you did it. I'm sure others in the future will find this helpful.
from polar.
Related Issues (20)
- Feature Request: Add support for CLN v23.08 HOT 2
- Bug: Reusing TAP Address in Send Asset HOT 7
- Bug: Unable to run CLN on macOS Vetura (13.5.2) HOT 11
- Bug: When I open channel on LND Node, the UI feedback me: "Cannot convert undefined or null to object". HOT 1
- Bug: Eclair - Error in GUI when open channel HOT 1
- Feature Request: Electrum server HOT 1
- Bug: yarn package and yarn dev fails on latest versions of Nodejs HOT 3
- Bug: python3 list.py can not connect to alice-tapd HOT 4
- access to bitcoin.config file? "Fee exceeds maximum configured by user (e.g. -maxtxfee, maxfeerate)" HOT 3
- Feature Request: proposed integration of sim-ln in polar HOT 5
- feature request: add button to balance all existing channels in current network HOT 9
- Bug: Unable to pay HODL invoice HOT 1
- Feature Request: add a description field for each network HOT 2
- Bug: Cannot open app on MacOS 'macOS cannot verify that this app is free from malware' HOT 1
- Bug: Update instructions to create CLN custom node HOT 5
- Watchtowers HOT 3
- Bug: Unable to close channel initiated by Core Lightning node
- Suggestion to Include a Practical Example of Interacting with Lightning Network Nodes Using Polar as a Development Environment in the Documentation HOT 2
- Feature Request: Migrate from `c-lightning-REST` to core lightning's build in plugin `clnrest` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polar.