Add amount range to lease_rate#1
Conversation
We add a minimum and maximum amount to the lease rate. This allows sellers to provide different rates depending on the amount that is purchased. Since the number of utxos used will likely vary based on the amount, this also lets them use more accurate funding weights to ensure they don't end up paying too much of the on-chain fees. With that data added, a lease rate uses 24 bytes. We limit the number of rates in a `node_announcement` to 10, which doesn't make it too harmful in terms of bandwidth usage for the gossip network.
|
@TheBlueMatt can you detail the fee fields you wanted to add? IIRC there was one related to lightning/blips#25 (but then isn't it an issue that the BOLTs reference a bLIP?) and the other one was some way of indicating a recurring payment? |
|
So there's a lot of things we need in general - we need to support JIT channels (and paying the |
|
I'll go ahead and merge this into lightning#1145 for now. I'll work on a concurrent design for liquidity ads that is more flexible and will let us more easily extend the fee mechanisms. That will end-up being a separate spec PR, which may make lightning#1145 obsolete. |
We add a minimum and maximum amount to the lease rate. This allows sellers to provide different rates depending on the amount that is purchased. Since the number of utxos used will likely vary based on the amount, this also lets them use more accurate funding weights to ensure they don't end up paying too much of the on-chain fees.
With that data added, a lease rate uses 24 bytes. We limit the number of rates in a
node_announcementto 10, which doesn't make it too harmful in terms of bandwidth usage for the gossip network.