Commit a6fc293
MacroFake
Merge bitcoin#25656: refactor: wallet: return util::Result from
76b3c37 refactor: wallet: return util::Result from `GetReservedDestination` methods (Sebastian Falbesoner)
Pull request description:
This PR is a follow-up to bitcoin#25218, as suggested in comment bitcoin#25218 (comment). The interfaces of the methods `ReserveDestination::GetReservedDestination`, `{Legacy,Descriptor,}ScriptPubKeyMan::GetReservedDestination` are improved by returning `util::Result<CTxDestination>` instead of `bool` in order to get rid of the two `CTxDestination&` and `bilingual_str&` out-parameters.
ACKs for top commit:
furszy:
ACK 76b3c37
Tree-SHA512: bf15560a88d645bcf8768024013d36012cd65caaa4a613e8a055dfd8f29cb4a219c19084606992bad177920cdca3a732ec168e9b9526f9295491f2cf79cc6815GetReservedDestination methodsFile tree
5 files changed
+26
-40
lines changed- src/wallet
5 files changed
+26
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
299 | | - | |
| 298 | + | |
300 | 299 | | |
301 | 300 | | |
302 | 301 | | |
303 | 302 | | |
304 | 303 | | |
305 | | - | |
306 | | - | |
| 304 | + | |
307 | 305 | | |
308 | 306 | | |
309 | 307 | | |
310 | | - | |
311 | | - | |
| 308 | + | |
312 | 309 | | |
313 | | - | |
314 | | - | |
| 310 | + | |
315 | 311 | | |
316 | 312 | | |
317 | 313 | | |
| |||
1760 | 1756 | | |
1761 | 1757 | | |
1762 | 1758 | | |
1763 | | - | |
| 1759 | + | |
1764 | 1760 | | |
1765 | 1761 | | |
1766 | 1762 | | |
1767 | 1763 | | |
1768 | | - | |
1769 | | - | |
1770 | | - | |
1771 | | - | |
1772 | | - | |
1773 | | - | |
| 1764 | + | |
1774 | 1765 | | |
1775 | 1766 | | |
1776 | 1767 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| |||
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
579 | | - | |
| 579 | + | |
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
817 | | - | |
818 | | - | |
819 | | - | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
820 | 823 | | |
821 | | - | |
822 | 824 | | |
823 | 825 | | |
824 | 826 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2359 | 2359 | | |
2360 | 2360 | | |
2361 | 2361 | | |
2362 | | - | |
2363 | | - | |
2364 | 2362 | | |
2365 | | - | |
2366 | | - | |
2367 | | - | |
| 2363 | + | |
| 2364 | + | |
2368 | 2365 | | |
2369 | | - | |
2370 | | - | |
| 2366 | + | |
2371 | 2367 | | |
2372 | 2368 | | |
2373 | 2369 | | |
| |||
2437 | 2433 | | |
2438 | 2434 | | |
2439 | 2435 | | |
2440 | | - | |
| 2436 | + | |
2441 | 2437 | | |
2442 | 2438 | | |
2443 | 2439 | | |
2444 | | - | |
2445 | | - | |
| 2440 | + | |
2446 | 2441 | | |
2447 | 2442 | | |
2448 | | - | |
2449 | 2443 | | |
2450 | 2444 | | |
2451 | 2445 | | |
2452 | 2446 | | |
2453 | 2447 | | |
2454 | | - | |
2455 | | - | |
2456 | | - | |
| 2448 | + | |
| 2449 | + | |
| 2450 | + | |
2457 | 2451 | | |
2458 | 2452 | | |
2459 | | - | |
2460 | | - | |
| 2453 | + | |
2461 | 2454 | | |
2462 | 2455 | | |
2463 | 2456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| |||
0 commit comments