gudnuf / bolt12-prism

CLN plugin for lightning prisms using BOLT 12
15 stars 5 forks source link

Bug: Prism plugin blocks during long-running process #78

Open farscapian opened 4 months ago

farscapian commented 4 months ago

Let's say you have a 7-member prism that has a bunch of tor-based destinations. Executing this prism through invoice_payment can take a while, minutes or more. Well let's say during that execution, you want to run another RPC method that is not long running (e.g., binding-list). Binding-list blocks. Bummer.

I think this means that we'll need to separate invoice_payment event handling logic into a distinct plugin.