Commit 901358a
refactor: review fixes for CInstantSendManager decoupling
- Rename IsKnownTx to HasTxForLock for clarity (returns true when
the lock's transaction is known, not pending without a TX)
- Fix unconditional LookupBlockIndex in CheckCanLock: only take
cs_main on cache miss instead of every call
- Fix log prefix typos: NetSigning -> NetInstantSend in
ProcessInstantSendLock
- Remove redundant LookupBlockIndex fallback in ProcessInstantSendLock
that duplicated the static GetBlockHeight helper
- Simplify AttachISLockToTx: use for-loop with early-continue,
remove unnecessary variable
- Remove double blank line
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent a335d77 commit 901358a
File tree
5 files changed
+33
-43
lines changed- src
- active
- instantsend
5 files changed
+33
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | 148 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
162 | 159 | | |
163 | | - | |
| 160 | + | |
164 | 161 | | |
165 | 162 | | |
166 | 163 | | |
| |||
290 | 287 | | |
291 | 288 | | |
292 | 289 | | |
293 | | - | |
| 290 | + | |
294 | 291 | | |
295 | 292 | | |
296 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
368 | 368 | | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | 369 | | |
378 | 370 | | |
379 | 371 | | |
380 | 372 | | |
381 | | - | |
| 373 | + | |
382 | 374 | | |
383 | 375 | | |
384 | 376 | | |
| |||
388 | 380 | | |
389 | 381 | | |
390 | 382 | | |
391 | | - | |
392 | 383 | | |
393 | 384 | | |
394 | 385 | | |
| |||
398 | 389 | | |
399 | 390 | | |
400 | 391 | | |
401 | | - | |
402 | | - | |
| 392 | + | |
| 393 | + | |
403 | 394 | | |
404 | 395 | | |
405 | 396 | | |
| |||
588 | 579 | | |
589 | 580 | | |
590 | 581 | | |
591 | | - | |
| 582 | + | |
592 | 583 | | |
593 | 584 | | |
594 | 585 | | |
| |||
605 | 596 | | |
606 | 597 | | |
607 | 598 | | |
608 | | - | |
| 599 | + | |
609 | 600 | | |
610 | 601 | | |
611 | 602 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
217 | 219 | | |
218 | | - | |
| 220 | + | |
| 221 | + | |
219 | 222 | | |
220 | | - | |
221 | | - | |
222 | 223 | | |
223 | 224 | | |
224 | 225 | | |
| |||
0 commit comments