nolooking icon indicating copy to clipboard operation
nolooking copied to clipboard

Parallelize funding RPC if channel open > 1

Open DanGould opened this issue 3 years ago • 3 comments

we don't need repeat rpc calls, which I think we're doing now.

lnd: https://api.lightning.community/#batchopenchannel

cln: https://lightning.readthedocs.io/lightning-multifundchannel.7.html

DanGould avatar Oct 27 '22 19:10 DanGould

batchopenchannel doesn't allow PSBT funding flow so it's incompatible with PayJoin.

Kixunil avatar Nov 17 '22 13:11 Kixunil

In that case we could still make The LndClient Sync and Send so the "Verify funding" logic can interact with remote lightning nodes in parallel lnd::LndClient::verify_funding as demonstrated in #10

DanGould avatar Nov 21 '22 20:11 DanGould

Oh, yes, definitely! I was thinking about it before. It was POC code after all. :)

Kixunil avatar Nov 21 '22 23:11 Kixunil