Avatar
Lagrange
0022fc3af01bafe1766437b87d92db4dd22cbd108ab044aaa0053cdc2f9d9f79
Somewhere in the #Bitcoin rabbit hole. Learning to write plugins for c-lightning.

Hi. Do you mind sharing a working branch on this? I was also looking into this myself. (my nostr pubkey is in my github profile)

Replying to Avatar corndalorian

nostr:npub1hqaz3dlyuhfqhktqchawke39l92jj9nt30dsgh2zvd9z7dv3j3gqpkt56s waiting for someone to crack the 17M sats bounty in his book so his readers will actually tell others about the book...

What? Which bounty? Which book?

You also pay taxes on the money that you haven't used to buy things, and there is also inflation.

Hi Calle. Out of curiosity: what does it take to integrate on-chain payments into cashu. I imagine that users of ecash are people who don't run lightning nodes themselves ...

You just need to build up a network of contacts. There aren't "follower" recommendation algorithms behind Nostr, it's just a communication protocol.

I'll keep in mind for next time I go to Latin America.

Do you know of any surf instructor in Europe accepting Bitcoin?

I want surf lessons, I pay in Bitcoin. Where are you located?

yes, but does it actually do something?

If I set unit to USD and do /invoice 1, I still get an invoice for 1 sat instead of 1 usd.

No, MCF is done with a model of the network. RPC communication with CLN is needed to send the onions, we call sendpay.

Min. Cost Flow, where the cost function is a combination of uncertainty and fees. This is the implementation of Pickhardt-Richter's idea. https://arxiv.org/abs/2107.05322

I have been fixing renepay lately and thanks to some insightful discussions and brainstorming with René Pickhardt we have had great improvements.

In summary, the current Mininum Cost Flow algorithm (MCF) cannot allocate fees as part of the payment amount due to the sats conservation assumption that the only source and sink of flow are the sender and recipient nodes. Once fees are added on top this resulted in channels being asked to forward more sats than their probable available liquidity and consequently possibly an infinite loop of failures. To fix this we take the routes computed by the MCF and reduce their sending amount to fit all liquidity constraints:

fee, uncertainty and max_htlc; then deficit in the delivering amount is redistributed among the other routes or reallocated in a new MCF computation if necessary.

More details at this PR: https://github.com/ElementsProject/lightning/pull/6893

before:

after: