fiatjaf / sparko

c-lightning RPC over HTTP with fine-grained permissions, SSE and spark-wallet support
38 stars 12 forks source link

Unable to turn off sparko or upgrade #17

Closed heyambob closed 2 years ago

heyambob commented 2 years ago

It's very strange. I'm running c-ln with sparko. I have it on the config file. Now I tried to comment the line that load sparko out, but it's still loading.

#plugin=/LN/sparko_linux_amd64

I want to upgrade to 2.9, so I have the line point to the new binary, yet it's still saying 2.8. Looks like it does not care about the line on the config, and has fused itself into my c-lightning node

fiatjaf commented 2 years ago

c-lightning automatically loads any executable in the $LN_PATH/plugins directory (and some other magical paths) regardless of your config.

heyambob commented 2 years ago

You are right, I put sparko in the plugins directory, although, I tried to replace the 2.8 with 2.9 sparko_linux_amd64 binary, it's stil saying "plugin-sparko initialized plugin v2.8" . My guess is you forgot to change the version number on the greeting.

fiatjaf commented 2 years ago

You are right in your guess. Sorry about that.