Research/Bitcoin Dev Archive / lightning-dev list
A Proposal for Adding Bandwidth Metered Payment to Onion Messages
3 messages, Feb 24 to Mar 23, 2022. Started by Olaoluwa Osuntokun.
Olaoluwa Osuntokun (2), Rusty Russell
Hi y'all,
(TL;DR: a way to nodes to get paid to forward onion messages by adding an upfront session creation phase that uses AMP tender a messaging session to a receiver, with nodes being paid upfront for purchase of forwarding bandwidth, and a session identifier being transmitted alongside onion messages to identify paid sessions)
Onion messaging has been proposed as a way to do things like fetch invoices directly from a potential receiver _directly_ over the existing LN. The current proposal (packaged under the BOLT 12 umbrella) uses a new message (`onion_message`) that inherits the design of the existing Sphinx-based onion blob included in htlc_add messages as a way to propagate arbitrary messages across the network. Blinded paths which are effectively an unrolled Sphinx SURB (single use reply block), are used to support reply messages in a more private manner. Compared to SURBs, blinded paths are more flexible as they don't lock in things like fees or CLTV values.
A direct outcome of widespread adoption of the proposal is that the scope of LN is expanded beyond "just" a decentralized p2p payment system, with the protocol evolving to also support pseudonymous messaging and arbitrary data transfer across the network. This expanded network (payments + arbitrary data transfer) enables use cases like streaming video transfer, network tunneled VPNs, large file download, popcorn time, etc -- . Depending on one's view, the existence of such a combined protocol/network may either elicit feelings of dread (can we really do _both_ payments _and_ data properly in the same network?) or excitement (I finally have a censorship resistant way to watch unboxing videos of all my favorite gadgets!).
Putting aside the discussion w.r.t if such an expanded network is desirable and also if the combined functionality fundamentally _needs_ to exist in the confines of a single protocol stack (eg: if LN impls packaged tor clients would that be enough?), IMO onion messaging as currently proposed has a few issues:
1. As there's no explicit session creation/acceptance, a node can be spammed with unsolicited messages with no way to deny unwanted messages nor explicitly allow messages from certain senders.
2. Nodes that forward these messages (up to 32 KB per message) receive no compensation for the network bandwidth their expend, effectively shuffling around messages for free.
3. Rate limiting isn't concretely addressed, which may result in heterogeneous rate limiting policies enforced around the network, which can degrade the developer/user experience (why are my packets being randomly dropped?).
In this email I propose a way to address the issues mentioned above by adding explicit onion messaging session creation as well as a way for nodes to be (optionally) paid for any onion messages they forward. In short, an explicit session creation phase is introduced, with the receiver being able to accept/deny the session. If the session is accepted, then all nodes that comprise the session route are compensated for allotting a certain amount of bandwidth to the session (which is ephemeral by nature).
# High-Level Overview
Inspired by HORNETs two-phase session creation (first phase makes the circuit, send allows data transfers), I propose we break up onion messaging session creation into two phases. In the first phase a sender purchases _forwarding bandwidth_ from a series of intermediate nodes and also requests creation of a messaging session to the receiver in a single _atomic_ step. In the second phase, assuming the session creation was successful, the sender is able to use the purchased forwarding bandwidth to send messages to the receiver. The session stays open until either it expires, or the receiver runs out of cumulative forwarding bandwidth and needs to repeat the first step.
As we'll see shortly, the created onion messaging sessions aren't tightly coupled to the nodes that are a part of the initial session creation. Instead session creation creates a sort of overlay network from the PoV of the sender that can be used to transmit messages. The same route doesn't need to be used by subsequent onion message transmissions as the sending node may already have existing bandwidth sessions it can put together to send a new/existing message.
One trade-off of the current approach is that a small amount of per-session state is added to nodes that want to be paid to forward onion messages. The current onion messaging proposal takes care to _not_ introduce any extra state to nodes in an onion messaging path: they just decrypt/unblinded and forward to the next hop. This proposal as it stands adds just 40-bytes-ish of storage overhead per session (which are ephemeral so this state can be forgotten over time). In practice, as nodes are being paid to forward, they can ensure their pricing (more on that later) properly compensates then for this added storage per session.
# AMP + Onion Messaging == Paid Onion Messaging
What follows is a concrete-ish sketch of how something like this can be implemented in practice. At a high level, we use AMP to extend a push payment to a would be receiver (which can actually just be oneself in practice to purchase bandwidth sessions). Nodes add a new TLV to their node announcement (alongside a new feature bit that says they only accept payment for forwarding) that allows them to express a _new_ fee rate for forwarding messages (distinct from normal fees as one pay per byte transferred). Using another new TLV within the existing HTLC onion blob, the sender transmits a 32-byte session identifier (may be distinct for each route) to each intermediate hop. The final hop of the HTLC includes yet another new TLV in the onion that specifies that this is an AMP payment wishing to establish an onion messaging session that terminates at that final hop. In the data transfer phase, the `encrypted_data_tlv` for each hop is extended with a new type that stores the session identifier, with nodes keeping track of the remaining forwarding bandwidth allotted to the, rejecting messages if the session has expired or not bandwidth remains.
## Node Announcement TLV Extension
In order to allow nodes to signal that they want to be paid to forward onion messages and also specify their pricing, we add two new TLV to the node_ann message:
* type: 1 (`sats_per_byte`)
* data:
* [`uint64`:`forwarding_rate`]
* type: 2 (`sats_per_block`)
* data:
* [`uint64`:`per_block_rate`]
The `sats_per_byte` field allows nodes to price their bandwidth, ensuring that they get paid for each chunk of allocated bandwidth. As sessions have a fixed time frame and nodes need to store additional data within that time frame, the `sats_per_block` allows nodes to price this cost, as they'll hold onto the session identifier information until the specified block height (detailed below).
As onion messages will _typically_ be fixed sized we may want to use coursers metering here instead of bytes, possibly paying for 1.3KB or 32 KB chunks instead.
## Onion Messaging Identifiers
With the above nodes are able to express that they're willing to forward messages for sats, and how much they charge per byte as well as per block. Next we add a new TLV in the _existing_ HTLC onion blob that allows a sending node to tender paid onion message session creation. A sketch of this type would look something like:
* type: 14 (`onion_session_id`)
* data:
* [`32*byte`:`session_id`]
After session creation succeeds, nodes will forward onion messages that include that `onion_session_id`. The set of `encrypted_data_tlv` for onion messages is extended to also specify a new type that stores the session ID:
* type: 10 (`onion_session_id`)
* data:
* [`32*byte`:`session_id`]
When forwarding an onion message that includes an `onion_session_id` (a node may only forward messages that contain such an ID), nodes do the necessary bookkeeping to tally how much bandwidth if left in this session, and also check that the session hasn't expired before forwarding.
## Session Creation
During session creation, the sender creates a series of new `onion_session_id`'s (or a single one) for all nodes in the messaging route it doesn't already have an active session with. To initiate session creation, the node sends an AMP payment to the receiver (a push payment) that drops off the proper fee (as specified by the `sats_per_byte` and `sats_per_block` rate) to each intermediate hop along with the proposed `onion_session_id`. We also add another TLV (to the base onion blob) that specifies the indented lifetime of the session:
* type: 10 (`onion_session_expiry_height`)
* data:
* [`uint32`:`expiry_height`]
To accept a session, the receiver waits until all payment parts have arrived (senders can either purchase bandwidth in bulk sessions, or do little by little, tit-for-tat style) and pulls the payment. As the receiver needs to receive the message in the first place, they're also compensated in a similar manner.
Session creation is rejected (I don't want to receive messages) if the receiver chooses to fail back _any_ of the AMP HTLC splits (they don't need to wait until they all arrive). If a session is rejected, then nodes forget that session ID, and its treated like any other failed HTLC. If a session is accepted (the pre-image gets pulled and all nodes get their upfront bandwidth payment as fees) then nodes are to remember that session ID as they need to account for the remaining bandwidth and lifetime.
## Data Transmission + Forwarding
Once a session has been finalized, the sender can use it to send messages to the receiver. To do so, in addition to specifying the `next_node_if` field, they also specify the purchased `onion_session_id` in the set of `encrypted_data_tlv`. Note that a node may already have active sessions across the network, so initial session creation may not be required for each new destination they want to send a message to. Over time if they're sending frequent messages, they'll create what's effectively a personal overlay network that they can use to send messages to any node in that set.
When forwarding onion messages, in addition to the normal decryption/unblinding, nodes also check that the session hasn't expired and the session also has enough bandwidth left.
# Conclusion
With the above sketch, we gain a way for nodes to be compensated for forwarding onion messages on the network. This supplements their existing fee revenue, potentially making it more sustainable to run a Lightning node, depending on the demand for forwarding bandwidth by wallets/services/applications. Onion messaging is left mostly unchained, aside from the addition of some new TLV types and an added storage requirement. Clients need to keep track of these session identifiers, which adds a small storage requirement that scales according to their number of established sessions (decays like the node storage requirement as well).
Examining the BOLT 12 use case of using onion messaging to fetch invoices, this scheme adds a cost to sending arbitrary messages which includes invoice messages. To address this the receiver can do things like include the session ID as part of the blinded paths, and prepay forwarding bandwidth for nodes along that path. As the session IDs are in the onion itself, the sender doesn't learn of them so they can't use them for their own arbitrary purposes.
As AMP payments are used to create initial sessions, forwarding paid messages across the network requires a channel to exist between all hops in the route, unlike base onion messages that specifies one should allow messages to nodes you don't have a channel open with.
There're still some details that need to be filled in here (in particular how pathfinding is modified by the initial session creation, but I figure it's useful to at least throw this out there to add some more nuance to the conversation related to onion messaging and the added DoS potential. If nodes are given a way to be paid for forwarding onion messages instead of doing it for free, from my PoV it's safe to assume that they'll overwhelmingly prefer to be paid (other than nodes that use uniform zero fees across all channels I guess).
-- Laolu
Olaoluwa Osuntokun <laolu32 at gmail.com> writes:
Quoted text (7 lines)
> Hi y'all, > > (TL;DR: a way to nodes to get paid to forward onion messages by adding an > upfront session creation phase that uses AMP tender a messaging session to a > receiver, with nodes being paid upfront for purchase of forwarding > bandwidth, and a session identifier being transmitted alongside onion > messages to identify paid sessions)
AMP seems to be a Lightning Labs proprietary extension. You mean keysend, which at least has a draft spec?
Quoted text (12 lines)
> Onion messaging has been proposed as a way to do things like fetch invoices > directly from a potential receiver _directly_ over the existing LN. The > current proposal (packaged under the BOLT 12 umbrella) uses a new message > (`onion_message`) that inherits the design of the existing Sphinx-based > onion blob included in htlc_add messages as a way to propagate arbitrary > messages across the network. Blinded paths which are effectively an unrolled > Sphinx SURB (single use reply block), are used to support reply messages in > a more private manner. Compared to SURBs, blinded paths are more flexible as > they don't lock in things like fees or CLTV values. > > A direct outcome of widespread adoption of the proposal is that the scope of > LN is expanded beyond "just" a decentralized p2p payment system, with the
Sure, let's keep encouraging people to use HTLCs for free to send data? I can certainly implement that if you prefer!
Quoted text (12 lines)
> 1. As there's no explicit session creation/acceptance, a node can be > spammed with unsolicited messages with no way to deny unwanted messages nor > explicitly allow messages from certain senders. > > 2. Nodes that forward these messages (up to 32 KB per message) receive no > compensation for the network bandwidth their expend, effectively shuffling > around messages for free. > > 3. Rate limiting isn't concretely addressed, which may result in > heterogeneous rate limiting policies enforced around the network, which can > degrade the developer/user experience (why are my packets being randomly > dropped?).
Sure, this is a fun one! I can post separately on ratelimiting; I suggest naively limiting to 10/sec for peers with channels, and 1/sec for peers without for now.
(In practice, spamming with HTLCs is infinitely more satisfying...)
Quoted text (7 lines)
> In this email I propose a way to address the issues mentioned above by > adding explicit onion messaging session creation as well as a way for nodes > to be (optionally) paid for any onion messages they forward. In short, an > explicit session creation phase is introduced, with the receiver being able > to accept/deny the session. If the session is accepted, then all nodes that > comprise the session route are compensated for allotting a certain amount of > bandwidth to the session (which is ephemeral by nature).
It's an interesting layer on top (esp if you want to stream movies), but I never proposed this because it seems to add a source-identifying session id, which is a huge privacy step backwards.
You really *do not want* to use this for independent transmissions.
I flirted with using blinded tokens, but it gets complex fast; ideas welcome!
Quoted text (12 lines)
> ## Node Announcement TLV Extension > > In order to allow nodes to signal that they want to be paid to forward onion > messages and also specify their pricing, we add two new TLV to the node_ann > message: > > * type: 1 (`sats_per_byte`) > * data: > * [`uint64`:`forwarding_rate`] > * type: 2 (`sats_per_block`) > * data: > * [`uint64`:`per_block_rate`]
You mean:
* type: 1 (`sats_per_byte`)
* data:
* [`tu64`:`forwarding_rate`]
* type: 3 (`sats_per_block`)
* data:
* [`tu64`:`per_block_rate`]
1. Don't use an even TLV field. 2. Might as well use truncated u64.
Quoted text (11 lines)
> The `sats_per_byte` field allows nodes to price their bandwidth, ensuring > that they get paid for each chunk of allocated bandwidth. As sessions have a > fixed time frame and nodes need to store additional data within that time > frame, the `sats_per_block` allows nodes to price this cost, as they'll hold > onto the session identifier information until the specified block height > (detailed below). > > As onion messages will _typically_ be fixed sized we may want to use > coursers > metering here instead of bytes, possibly paying for 1.3KB or 32 KB chunks > instead.
I think it's a premature optimization? Make standard duration 2016 blocks; then they can request multiples if they want? Reduces node_announcement size.
Quoted text (9 lines)
> With the above nodes are able to express that they're willing to forward > messages for sats, and how much they charge per byte as well as per block. > Next we add a new TLV in the _existing_ HTLC onion blob that allows a > sending node to tender paid onion message session creation. A sketch of this > type would look something like: > > * type: 14 (`onion_session_id`) > * data: > * [`32*byte`:`session_id`]
I'd be tempted to use 16 bytes? Collisions here are not really a thing since you'd need a network packet per probe, and you're time limited.
Quoted text (12 lines)
> After session creation succeeds, nodes will forward onion messages that > include that `onion_session_id`. The set of `encrypted_data_tlv` for onion > messages is extended to also specify a new type that stores the session ID: > > * type: 10 (`onion_session_id`) > * data: > * [`32*byte`:`session_id`] > > When forwarding an onion message that includes an `onion_session_id` (a node > may only forward messages that contain such an ID), nodes do the necessary > bookkeeping to tally how much bandwidth if left in this session, and also > check that the session hasn't expired before forwarding.
This is good because it doesn't require a db write (if you crash and forget to charge, it's OK).
AFAICT this is easy to implement on top of onion_messages as they stand today (if you don't want to fwd free onion messages at all, don't set that bit?).
Cheers, Rusty.
Hi Rusty,
Quoted text (2 lines)
> AMP seems to be a Lightning Labs proprietary extension. You mean keysend, > which at least has a draft spec?
I'm confused: the keyspend specification lives today as a very succinct bLIP [1] (use this record that contains the preimage settle the payment), and the AMP spec has had an open PR [2] (which admittedly needs to be mega-rebased) for sometime now and is amongst the oldest PRs in the BOLT tracker. Your definition of a "proprietary extension" here would seem to cover just about every open BOLT pull request that hasn't yet been widely adopted by multiple implementations.
With that aside, AMP is used here instead of keysend as each payment split uses a different payment hash, which makes it harder to correlate payment splits as both the amount and hash will differ. Also given that the e2e payment needs to drop off additional fees (to pay for the forwarding pass) to each hop, the receiver doesn't actually know how much to expect as total payment (no invoice exists in this scenario). With keysend, it's possible the receiver accidentally pulls early, with the funds irrevocably sent, while no true onion messaging session has been constructed. With AMP the sender is the one that controls _when_ all the funds can be pulled, which eliminates such edge cases.
Quoted text (2 lines)
> Sure, let's keep encouraging people to use HTLCs for free to send data? I > can certainly implement that if you prefer!
I think the difference here is that HTLCs aren't that great for sending data: any space you allocate to arbitrary data takes away from the total route length. Also given the existence of the max_htlc parameters in channel updates, nodes can increase this value which allows them to discourage certain classes of behavior, as the HTLC that transmits the data serves effectively as an ephemeral bond, meaning that HTLC data transfer attempts incur an opportunity cost w.r.t the capital locked up.
As a result, what's deployed in the wild today that uses HTLCs to send data (importantly at no additional marginal cost, since you sling 1.3KB across the wire anyway for normal payments), imo is mostly cases that only need a smaller amount of data, or use it mainly as a signalling layer. In contrast, onion messaging would allow users to send 32 KB (and beyond?), which makes certain classes of applications more feasible.
Quoted text (2 lines)
> I suggest naively limiting to 10/sec for peers with channels, and 1/sec > for peers without for now.
Curious to see what a fleshed out version of this would look like. IMO if this rate limiting event doesn't somehow make it back to the sender, then it isn't clear exactly why they're unable to even fetch an invoice to _attempt_ a payment. I think one issue with defaulting to always fetching invoices in a multi-hop manner is that a node failure may mean that a user can't even obtain an invoice, compared to just hitting an API or scanning a QR code that encodes one (pretty much 99% chance of success).
(I think there's also a side discussion here w.r.t if tightly coupling an invoice/offer to a single node is compatible with the multi-node receive architectures that some services are beginning to develop/deploy, but we can make another thread for that.)
Quoted text (2 lines)
> You mean: > 1. Don't use an even TLV field.
I don't see why one _wouldn't_ use an even field here: if the node doesn't know what this means, then I want them to reject the payment, as otherwise they aren't able to properly do the bandwidth metering. Even assuming a feature bit, I think an even field would make sense, but ofc I'm open to further reasoning.
Quoted text (3 lines)
> I think it's a premature optimization? Make standard duration 2016 > blocks; then they can request multiples if they want? Reduces > node_announcement size.
Hmm, potentially but if I just need this to ask a node about their latest ephemeral onion service, do I really need the session to persist for 2016 blocks? At just 8 bytes here, it's smaller than a tor v3 onion address and even most feature bit distributions. Also there's nothing stopping someone from advertising optional feature bit 12,324 which means that nodes need to lug around and store all those extra bytes.
Quoted text (2 lines)
> I'd be tempted to use 16 bytes? Collisions here are not really a thing > since you'd need a network packet per probe, and you're time limited.
Yeah if the 32 bytes for each hop ends up eating too much into the total route length, then most use cases can get by with 16 bytes.
Quoted text (3 lines)
> AFAICT this is easy to implement on top of onion_messages as they stand > today (if you don't want to fwd free onion messages at all, don't set > that bit?).
Correct! The idea is to give nodes that don't want to forward for free an option to charge for forwarding and supplement their existing routing node revenue.
On Twitter, Lisa brought up that as the data forwarding and payment aren't "atomic", you're reliant on the nodes to actually "do the thing" once the payment has been completed. This is correct, and imo can be mitigated mainly via a "tit for tat approach", so paying for a smol session and seeing if they actually cooperate. Incentive wise, if the node continues to operate as expected, then they can expect more messaging sessions to be created, which means mo sats as revenue. I think we're seeing a similar dynamic play out to day in the network, as path finding algorithms continue to evolve to factor in "reliability" information (usually some derived probability of success), which can tend to favor well managed and responsive nodes.
[1]: https://github.com/lightning/blips/blob/master/blip-0003.md [2]: https://github.com/lightning/bolts/pull/658
-- Laolu
On Wed, Feb 23, 2022 at 8:37 PM Rusty Russell <rusty at rustcorp.com.au> wrote:
Quoted text (165 lines)
> Olaoluwa Osuntokun <laolu32 at gmail.com> writes: > > Hi y'all, > > > > (TL;DR: a way to nodes to get paid to forward onion messages by adding an > > upfront session creation phase that uses AMP tender a messaging session > to a > > receiver, with nodes being paid upfront for purchase of forwarding > > bandwidth, and a session identifier being transmitted alongside onion > > messages to identify paid sessions) > > AMP seems to be a Lightning Labs proprietary extension. You mean > keysend, which at least has a draft spec? > > > Onion messaging has been proposed as a way to do things like fetch > invoices > > directly from a potential receiver _directly_ over the existing LN. The > > current proposal (packaged under the BOLT 12 umbrella) uses a new message > > (`onion_message`) that inherits the design of the existing Sphinx-based > > onion blob included in htlc_add messages as a way to propagate arbitrary > > messages across the network. Blinded paths which are effectively an > unrolled > > Sphinx SURB (single use reply block), are used to support reply messages > in > > a more private manner. Compared to SURBs, blinded paths are more > flexible as > > they don't lock in things like fees or CLTV values. > > > > A direct outcome of widespread adoption of the proposal is that the > scope of > > LN is expanded beyond "just" a decentralized p2p payment system, with the > > Sure, let's keep encouraging people to use HTLCs for free to send data? > I can certainly implement that if you prefer! > > > 1. As there's no explicit session creation/acceptance, a node can be > > spammed with unsolicited messages with no way to deny unwanted messages > nor > > explicitly allow messages from certain senders. > > > > 2. Nodes that forward these messages (up to 32 KB per message) receive > no > > compensation for the network bandwidth their expend, effectively > shuffling > > around messages for free. > > > > 3. Rate limiting isn't concretely addressed, which may result in > > heterogeneous rate limiting policies enforced around the network, which > can > > degrade the developer/user experience (why are my packets being randomly > > dropped?). > > Sure, this is a fun one! I can post separately on ratelimiting; I > suggest naively limiting to 10/sec for peers with channels, and 1/sec > for peers without for now. > > (In practice, spamming with HTLCs is infinitely more satisfying...) > > > In this email I propose a way to address the issues mentioned above by > > adding explicit onion messaging session creation as well as a way for > nodes > > to be (optionally) paid for any onion messages they forward. In short, an > > explicit session creation phase is introduced, with the receiver being > able > > to accept/deny the session. If the session is accepted, then all nodes > that > > comprise the session route are compensated for allotting a certain > amount of > > bandwidth to the session (which is ephemeral by nature). > > It's an interesting layer on top (esp if you want to stream movies), but > I never proposed this because it seems to add a source-identifying > session id, which is a huge privacy step backwards. > > You really *do not want* to use this for independent transmissions. > > I flirted with using blinded tokens, but it gets complex fast; ideas > welcome! > > > ## Node Announcement TLV Extension > > > > In order to allow nodes to signal that they want to be paid to forward > onion > > messages and also specify their pricing, we add two new TLV to the > node_ann > > message: > > > > * type: 1 (`sats_per_byte`) > > * data: > > * [`uint64`:`forwarding_rate`] > > * type: 2 (`sats_per_block`) > > * data: > > * [`uint64`:`per_block_rate`] > > You mean: > > * type: 1 (`sats_per_byte`) > * data: > * [`tu64`:`forwarding_rate`] > * type: 3 (`sats_per_block`) > * data: > * [`tu64`:`per_block_rate`] > > 1. Don't use an even TLV field. > 2. Might as well use truncated u64. > > > The `sats_per_byte` field allows nodes to price their bandwidth, ensuring > > that they get paid for each chunk of allocated bandwidth. As sessions > have a > > fixed time frame and nodes need to store additional data within that time > > frame, the `sats_per_block` allows nodes to price this cost, as they'll > hold > > onto the session identifier information until the specified block height > > (detailed below). > > > > As onion messages will _typically_ be fixed sized we may want to use > > coursers > > metering here instead of bytes, possibly paying for 1.3KB or 32 KB chunks > > instead. > > I think it's a premature optimization? Make standard duration 2016 > blocks; then they can request multiples if they want? Reduces > node_announcement size. > > > With the above nodes are able to express that they're willing to forward > > messages for sats, and how much they charge per byte as well as per > block. > > Next we add a new TLV in the _existing_ HTLC onion blob that allows a > > sending node to tender paid onion message session creation. A sketch of > this > > type would look something like: > > > > * type: 14 (`onion_session_id`) > > * data: > > * [`32*byte`:`session_id`] > > I'd be tempted to use 16 bytes? Collisions here are not really a thing > since you'd need a network packet per probe, and you're time limited. > > > After session creation succeeds, nodes will forward onion messages that > > include that `onion_session_id`. The set of `encrypted_data_tlv` for > onion > > messages is extended to also specify a new type that stores the session > ID: > > > > * type: 10 (`onion_session_id`) > > * data: > > * [`32*byte`:`session_id`] > > > > When forwarding an onion message that includes an `onion_session_id` (a > node > > may only forward messages that contain such an ID), nodes do the > necessary > > bookkeeping to tally how much bandwidth if left in this session, and also > > check that the session hasn't expired before forwarding. > > This is good because it doesn't require a db write (if you crash and > forget to charge, it's OK). > > AFAICT this is easy to implement on top of onion_messages as they stand > today (if you don't want to fwd free onion messages at all, don't set > that bit?). > > Cheers, > Rusty. >