Commit 1f65241
committed
wallet: descriptors setup, batch db operations
Instead of doing one db transaction per descriptor setup,
batch all descriptors' setup writes in a single db txn.
Speeding up the process and preventing the wallet from entering
an inconsistent state if any of the intermediate transactions
fail.1 parent 3eb769f commit 1f65241
File tree
4 files changed
+20
-10
lines changed- src/wallet
4 files changed
+20
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2275 | 2275 | | |
2276 | 2276 | | |
2277 | 2277 | | |
2278 | | - | |
| 2278 | + | |
2279 | 2279 | | |
2280 | 2280 | | |
2281 | 2281 | | |
| |||
2336 | 2336 | | |
2337 | 2337 | | |
2338 | 2338 | | |
2339 | | - | |
2340 | | - | |
2341 | | - | |
2342 | 2339 | | |
2343 | 2340 | | |
2344 | 2341 | | |
| |||
2350 | 2347 | | |
2351 | 2348 | | |
2352 | 2349 | | |
2353 | | - | |
2354 | | - | |
2355 | 2350 | | |
2356 | 2351 | | |
2357 | 2352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
624 | | - | |
| 624 | + | |
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3535 | 3535 | | |
3536 | 3536 | | |
3537 | 3537 | | |
| 3538 | + | |
| 3539 | + | |
| 3540 | + | |
| 3541 | + | |
3538 | 3542 | | |
3539 | 3543 | | |
3540 | 3544 | | |
3541 | 3545 | | |
3542 | 3546 | | |
3543 | 3547 | | |
3544 | 3548 | | |
3545 | | - | |
| 3549 | + | |
3546 | 3550 | | |
3547 | 3551 | | |
3548 | 3552 | | |
3549 | | - | |
| 3553 | + | |
3550 | 3554 | | |
3551 | 3555 | | |
3552 | | - | |
| 3556 | + | |
3553 | 3557 | | |
3554 | 3558 | | |
| 3559 | + | |
| 3560 | + | |
| 3561 | + | |
3555 | 3562 | | |
3556 | 3563 | | |
3557 | 3564 | | |
| |||
3606 | 3613 | | |
3607 | 3614 | | |
3608 | 3615 | | |
| 3616 | + | |
| 3617 | + | |
| 3618 | + | |
| 3619 | + | |
| 3620 | + | |
3609 | 3621 | | |
3610 | 3622 | | |
3611 | 3623 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
422 | 425 | | |
423 | 426 | | |
424 | 427 | | |
| |||
0 commit comments