MostroP2P / mostro

Lightning Network peer-to-peer exchange platform on Nostr
https://mostro.network
MIT License
191 stars 32 forks source link

Fix panic ln node #353

Closed arkanoider closed 2 months ago

arkanoider commented 2 months ago

Hi @grunch ,

this should fix the possible ln node without blocking Mostrod. To be tested.

arkanoider commented 2 months ago

great, mostrod does not panic when ln is down and keeps running printing a log?

Catrya commented 2 months ago

great, mostrod does not panic when ln is down and keeps running printing a log?

Yes, this is the log:

2024-09-11T15:46:14.421235Z  WARN mostrod::app: Error in AddInvoice with context status: Cancelled, message: "status: Unavailable, message: \"error trying to connect: tcp connect error: Connection refused (os error 111)\", details: [], metadata: MetadataMap { headers: {} }", details: [], metadata: MetadataMap { headers: {} }