Commit a88fef6
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 457d57a commit a88fef6
2 files changed
+62
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13170 | 13170 | | |
13171 | 13171 | | |
13172 | 13172 | | |
13173 | | - | |
| 13173 | + | |
| 13174 | + | |
| 13175 | + | |
| 13176 | + | |
| 13177 | + | |
| 13178 | + | |
| 13179 | + | |
| 13180 | + | |
| 13181 | + | |
| 13182 | + | |
| 13183 | + | |
| 13184 | + | |
| 13185 | + | |
| 13186 | + | |
13174 | 13187 | | |
13175 | 13188 | | |
13176 | 13189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1152 | 1152 | | |
1153 | 1153 | | |
1154 | 1154 | | |
1155 | | - | |
1156 | | - | |
| 1155 | + | |
| 1156 | + | |
1157 | 1157 | | |
1158 | | - | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
1159 | 1162 | | |
1160 | | - | |
1161 | | - | |
1162 | | - | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
1163 | 1166 | | |
1164 | 1167 | | |
1165 | | - | |
1166 | | - | |
1167 | | - | |
| 1168 | + | |
| 1169 | + | |
1168 | 1170 | | |
1169 | 1171 | | |
1170 | | - | |
1171 | 1172 | | |
1172 | 1173 | | |
1173 | 1174 | | |
| |||
1176 | 1177 | | |
1177 | 1178 | | |
1178 | 1179 | | |
1179 | | - | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
1186 | | - | |
1187 | | - | |
1188 | | - | |
1189 | | - | |
1190 | | - | |
1191 | | - | |
1192 | | - | |
1193 | | - | |
1194 | | - | |
1195 | | - | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
1196 | 1187 | | |
1197 | 1188 | | |
1198 | 1189 | | |
1199 | 1190 | | |
1200 | 1191 | | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
1201 | 1222 | | |
1202 | 1223 | | |
1203 | 1224 | | |
| |||
0 commit comments