Commit bfa585d
authored
feat(wallet): TopUpKeyPool improvements (#5456)
## Issue being fixed or feature implemented
- make progress calculations sane
- show progress in GUI but only when you need 100+ new keys
- make it stop on shutdown request
- spam less in debug.log
## What was done?
## How Has This Been Tested?
run tests, run `keypoolrefill` with `1100` (add 100 keys, no gui popup)
and `10000` (100+ keys, progress bar) on testnet wallet, check logs,
verify it can be interrupted on shutdown
## Breaking Changes
n/a
## Checklist:
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added or updated relevant unit/integration/functional/e2e
tests
- [ ] I have made corresponding changes to the documentation
- [x] I have assigned this pull request to a milestone _(for repository
code-owners and collaborators only)_1 parent a65b1fb commit bfa585d
1 file changed
+32
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
1414 | 1415 | | |
1415 | 1416 | | |
1416 | 1417 | | |
1417 | | - | |
1418 | | - | |
1419 | 1418 | | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
1420 | 1433 | | |
| 1434 | + | |
1421 | 1435 | | |
1422 | | - | |
1423 | | - | |
1424 | | - | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
1425 | 1439 | | |
1426 | 1440 | | |
1427 | 1441 | | |
1428 | 1442 | | |
1429 | 1443 | | |
1430 | 1444 | | |
1431 | 1445 | | |
1432 | | - | |
1433 | | - | |
1434 | | - | |
1435 | | - | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
1436 | 1453 | | |
1437 | | - | |
1438 | | - | |
1439 | | - | |
1440 | | - | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
1441 | 1460 | | |
1442 | 1461 | | |
1443 | 1462 | | |
| |||
0 commit comments