Commit 8defec2
committed
Split
Previously, the `enqueue_invoice` function in the `Flow` component
accepted a `Refund` as input and dispatched the invoice either directly
to a known `PublicKey` or via `BlindedMessagePath`s, depending on what
was available within the `Refund`.
While this worked for the refund-based flow, it tightly coupled invoice
dispatch logic to the `Refund` abstraction, limiting its general
usability outside of that context.
The upcoming commits will introduce support for constructing and
enqueuing invoices from manually handled `InvoiceRequest`s—decoupled
from the `Refund` flow. To enable this, we are preemptively introducing
more flexible, destination-specific variants of the enqueue function.
Specifically, the `Flow` now exposes two dedicated methods:
- `enqueue_invoice_using_node_id`: For sending an invoice directly to a
known `PublicKey`.
- `enqueue_invoice_using_reply_paths`: For sending an invoice over a
set of explicitly provided `BlindedMessagePath`s.
This separation improves clarity, enables reuse in broader contexts,
and lays the groundwork for more composable invoice handling across the
Offers/Refund flow.enqueue_invoice into destination-specific variants1 parent ea7af69 commit 8defec2
2 files changed
+62
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13119 | 13119 | | |
13120 | 13120 | | |
13121 | 13121 | | |
13122 | | - | |
| 13122 | + | |
| 13123 | + | |
| 13124 | + | |
| 13125 | + | |
| 13126 | + | |
| 13127 | + | |
| 13128 | + | |
| 13129 | + | |
| 13130 | + | |
| 13131 | + | |
| 13132 | + | |
| 13133 | + | |
| 13134 | + | |
| 13135 | + | |
13123 | 13136 | | |
13124 | 13137 | | |
13125 | 13138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1169 | 1169 | | |
1170 | 1170 | | |
1171 | 1171 | | |
1172 | | - | |
1173 | | - | |
| 1172 | + | |
| 1173 | + | |
1174 | 1174 | | |
1175 | | - | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
1176 | 1179 | | |
1177 | | - | |
1178 | | - | |
1179 | | - | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
1180 | 1183 | | |
1181 | 1184 | | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
| 1185 | + | |
| 1186 | + | |
1185 | 1187 | | |
1186 | 1188 | | |
1187 | | - | |
1188 | 1189 | | |
1189 | 1190 | | |
1190 | 1191 | | |
| |||
1193 | 1194 | | |
1194 | 1195 | | |
1195 | 1196 | | |
1196 | | - | |
1197 | | - | |
1198 | | - | |
1199 | | - | |
1200 | | - | |
1201 | | - | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
1208 | | - | |
1209 | | - | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
1213 | 1204 | | |
1214 | 1205 | | |
1215 | 1206 | | |
1216 | 1207 | | |
1217 | 1208 | | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
1218 | 1239 | | |
1219 | 1240 | | |
1220 | 1241 | | |
| |||
0 commit comments