You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doesn't take any more space (we could actually reduce millionths to 24 bits,
but that starts to look silly), but it's simpler and allows for cases where
there's no payment amount.
Closes: #296
Signed-off-by: Rusty Russell <[email protected]>
Copy file name to clipboardExpand all lines: 11-payment-encoding.md
+7-9Lines changed: 7 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,8 @@ Currently defined Tagged Fields are:
114
114
*`r` (3): `data_length` variable. One or more entries containing extra routing information for a private route; there may be more than one `r` field, too.
@@ -148,10 +149,7 @@ public channel associated with its public key. The `r` field MUST contain
148
149
one or more ordered entries, indicating the forward route from a
149
150
public node to the final destination. For each entry, the `pubkey` is the
150
151
node ID of the start of the channel, `short_channel_id` is the short channel ID
151
-
field to identify the channel, `fee` is the total fee required to use
152
-
that channel to send `amount` to the final node, specified in 10^-11
153
-
currency units, and `cltv_expiry_delta` is the block delta required
154
-
by the channel. A writer MAY include more than one `r` field to
152
+
field to identify the channel, `fee_base_msat`, `fee_proportional_millionths` and `cltv_expiry_delta` are as specified in [BOLT #7](07-routing-gossip.md#the-channel_update-message). A writer MAY include more than one `r` field to
155
153
provide multiple routing options.
156
154
157
155
A writer MUST pad field data to a multiple of 5 bits, using zeroes.
@@ -320,7 +318,7 @@ Breakdown:
320
318
*`wp3f9t`: Bech32 checksum
321
319
322
320
> ### On mainnet, with fallback address 1RustyRX2oai4EYYDpQGWvEL62BBGqN9T with extra routing info to go via nodes 029e03a901b85534ff1e92c43c74431f7ce72046060fcf7a95c37e148f78c77255 then 039e03a901b85534ff1e92c43c74431f7ce72046060fcf7a95c37e148f78c77255
0 commit comments