This is me explaining the potential race conditions of a payment system that does zaps, lightning payments and ecash, all stored encrypted on relays.

#nostr safebox

?cid=6c09b952ikr3bz5f2revro1krgaw87kgsaldr453pj859es9&ep=v1_internal_gif_by_id&rid=giphy.gif&ct=g

Reply to this note

Please Login to reply.

Discussion

Not sure if it is relevant but my safebox now shows 0 sats on homescreen but real balance on account history.

Fixed

Zapped

Yeah, I gotta handle race conditions due to multiple worker threads handling payment, zaps and invoices concurrently on the same safebox.

The issue is that Lightning is already pretty damn complicated and has lots of complicated failure modes. That's why I'm not super-bullish on hooking up YET ANOTHER complicated system with lots of failure modes to Lightning. Using them separately some how is a good idea, but having them work together, in the same payment flow that is supposed to complete in under 2 seconds... I just think that is "pushing it". It's too hard.