ElementsProject / lightning-charge

A simple drop-in solution for accepting lightning payments
MIT License
554 stars 80 forks source link

Support for v0.8.0? #69

Closed LightningK0ala closed 4 years ago

LightningK0ala commented 4 years ago

After upgrading c-lightning to v0.8.0 I'm getting an error with lightning-charge:

 Lightning client connection error { Error: connect ECONNREFUSED /root/.lightning/lightning-rpc
     at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
   errno: 'ECONNREFUSED',
   code: 'ECONNREFUSED',
   syscall: 'connect',
   address: '/root/.lightning/lightning-rpc' }
 events.js:183
       throw er; // Unhandled 'error' event
       ^

 Error: connect ECONNREFUSED /root/.lightning/lightning-rpc
     at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)

I'm on lightning charge v0.4.13

shesek commented 4 years ago

I haven't had the chance to test with v0.8.0 yet, but this might be due to c-lightning using subdirectories for networks now. Try starting spark with --ln-path /root/.lightning/<network>.

shesek commented 4 years ago

I could make the migration easier for users, created https://github.com/ElementsProject/lightning-charge/issues/70 and https://github.com/shesek/spark-wallet/issues/130 to keep track of that.

LightningK0ala commented 4 years ago

Starting spark with --ln-path /root/.lightning/bitcoin worked! You were right about the subdirectory, thanks @shesek!