Commit 3adeeb0
committed
Stop pre-creating
Remove the eager `PaymentStore` insertions from `receive_inner` and
`receive_via_jit_channel_inner`. Inbound payment entries will instead
be created on demand by the `EventHandler` when the corresponding LDK
events arrive.
Outbound payment entries (created by `send` / `send_using_amount`) are
kept as before so the sender always has a store record immediately after
initiating a payment.
Generated with the assistance of AI tools.
Co-Authored-By: HAL 9000PaymentStore entries in Bolt11Payment receive methods1 parent 0202964 commit 3adeeb0
1 file changed
+0
-50
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | 125 | | |
156 | 126 | | |
157 | 127 | | |
| |||
209 | 179 | | |
210 | 180 | | |
211 | 181 | | |
212 | | - | |
213 | 182 | | |
214 | 183 | | |
215 | 184 | | |
| |||
225 | 194 | | |
226 | 195 | | |
227 | 196 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | 197 | | |
248 | 198 | | |
249 | 199 | | |
| |||
0 commit comments