Repository navigation
Commit 06e1e43
committed
Merge #7711: backport!: bitcoin#26347, bitcoin#27199, bitcoin#27279, bitcoin#27622, bitcoin#28067, bitcoin#28602, bitcoin#28863, bitcoin#29115, bitcoin#29260
03ad3ec Merge bitcoin#29115: [doc]: add doxygen comment describing what `CheckPackageLimits` returns (Konstantin Akimov)
0bc9aea Merge bitcoin#27199: test: fix race condition in encrypted wallet rescan tests (Konstantin Akimov)
bbb5992 Merge bitcoin#29260: refactor: remove CTxMemPool::queryHashes() (Konstantin Akimov)
b42203e partial Merge bitcoin#28863: wallet, mempool: propagete `checkChainLimits` error message to wallet (Konstantin Akimov)
13def7a partial Merge bitcoin#28602: descriptors: Disallow hybrid and uncompressed keys when inferring (Konstantin Akimov)
48a3b6c partial Merge bitcoin#28067: descriptors: do not return top-level only funcs as sub descriptors (Konstantin Akimov)
32155d6 Merge bitcoin#27622: Fee estimation: avoid serving stale fee estimate (Konstantin Akimov)
1898d8f partial Merge bitcoin#27279: Add "warnings", deprecate "warning" in {create,load,unload,restore}wallet (Konstantin Akimov)
6c7d92b Merge bitcoin#26347: wallet: ensure the wallet is unlocked when needed for rescanning (Konstantin Akimov)
9a55401 fix: encrypt the HD chain in sethdseed on encrypted wallets (Konstantin Akimov)
Pull request description:
## Issue being fixed or feature implemented
Release of Dash Core v24 is soon, the merging PRs with breaking changes will be blocked awhile, until branch for v25 won't be split with v24 and usually it takes months.
## What was done?
This PR contains multiple backports with breaking changes from Bitcoin Core v25-v27, part II [wallets]
## How Has This Been Tested?
Run unit & functional tests
## Breaking Changes
Wallet
------
- In the createwallet, loadwallet, unloadwallet, and restorewallet RPCs, the
"warning" string field is deprecated in favor of a "warnings" field that
returns a JSON array of strings to better handle multiple warning messages and
for consistency with other wallet RPCs. The "warning" field will be fully
removed from these RPCs in v25. It can be temporarily re-enabled during the
deprecation period by launching dashd with the configuration option
`-deprecatedrpc=walletwarningfield`.
- Wallet passphrases are needed to top up the keypool of encrypted wallets
during a rescan. The following RPCs need the passphrase when rescanning:
- `importdescriptors`
- `rescanblockchain`
- Now the wallet `CreateTransactionInternal` will have access to the package limit error string whenever its hit. `Transaction has too long of a mempool chain` is replaced to `too many unconfirmed ancestors [limit: XX]`
- Changes in bitcoin#28067 [including / not including top level descriptor] is not actually breaking because `migratewallet` had not been released yet, but if it will be included in the other release it will be considered as breaking
- Changes in bitcoin#28602 [Disallow hybrid and uncompressed keys when inferring] is not actually breaking because `migratewallet` had not been release yet, but if it will be included in the other release it will be considered as breaking
Fee estimation
-------
- If `fee_estimates.dat` has not been updated for 60 hours or more, it is considered stale and will not be read during initialization
## 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)_
ACKs for top commit:
thepastaclaw:
<!-- thepastaclaw-review v1 -->
<!-- thepastaclaw-review-phase v1 phase=final sha=03ad3ec0e7014cdece953a90eaa0abdd64b9a99b policy=c7608b44bdc3b803 -->
## 33 files changed
Lines changed: 633 additions & 100 deletions
File tree
- doc
- src
- interfaces
- node
- policy
- rpc
- script
- test
- fuzz
- util
- wallet
- rpc
- test/functional
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
834 | 835 | | |
835 | 836 | | |
836 | 837 | | |
| 838 | + | |
837 | 839 | | |
838 | 840 | | |
839 | 841 | | |
| |||
1681 | 1683 | | |
1682 | 1684 | | |
1683 | 1685 | | |
1684 | | - | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
1685 | 1697 | | |
1686 | 1698 | | |
1687 | 1699 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
245 | | - | |
| 246 | + | |
246 | 247 | | |
247 | 248 | | |
248 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
1530 | 1531 | | |
1531 | 1532 | | |
1532 | 1533 | | |
1533 | | - | |
| 1534 | + | |
1534 | 1535 | | |
1535 | | - | |
| 1536 | + | |
1536 | 1537 | | |
1537 | 1538 | | |
1538 | 1539 | | |
1539 | 1540 | | |
1540 | | - | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
1541 | 1544 | | |
1542 | 1545 | | |
1543 | 1546 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
540 | 541 | | |
541 | 542 | | |
542 | 543 | | |
543 | | - | |
| 544 | + | |
544 | 545 | | |
545 | 546 | | |
546 | 547 | | |
| |||
558 | 559 | | |
559 | 560 | | |
560 | 561 | | |
561 | | - | |
562 | 562 | | |
563 | | - | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
564 | 578 | | |
565 | 579 | | |
566 | 580 | | |
| |||
915 | 929 | | |
916 | 930 | | |
917 | 931 | | |
| 932 | + | |
| 933 | + | |
918 | 934 | | |
| 935 | + | |
| 936 | + | |
919 | 937 | | |
920 | 938 | | |
921 | 939 | | |
| 940 | + | |
| 941 | + | |
922 | 942 | | |
923 | 943 | | |
924 | 944 | | |
| |||
1022 | 1042 | | |
1023 | 1043 | | |
1024 | 1044 | | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
23 | 36 | | |
24 | 37 | | |
25 | 38 | | |
| |||
183 | 196 | | |
184 | 197 | | |
185 | 198 | | |
186 | | - | |
| 199 | + | |
187 | 200 | | |
188 | 201 | | |
189 | 202 | | |
| |||
239 | 252 | | |
240 | 253 | | |
241 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
242 | 262 | | |
243 | 263 | | |
244 | 264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| 345 | + | |
345 | 346 | | |
346 | | - | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
350 | 352 | | |
351 | 353 | | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | 354 | | |
357 | 355 | | |
358 | 356 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1187 | 1187 | | |
1188 | 1188 | | |
1189 | 1189 | | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
459 | 468 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1128 | 1128 | | |
1129 | 1129 | | |
1130 | 1130 | | |
1131 | | - | |
| 1131 | + | |
1132 | 1132 | | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
1133 | 1141 | | |
1134 | 1142 | | |
1135 | 1143 | | |
| |||
1145 | 1153 | | |
1146 | 1154 | | |
1147 | 1155 | | |
1148 | | - | |
1149 | | - | |
| 1156 | + | |
| 1157 | + | |
1150 | 1158 | | |
1151 | 1159 | | |
1152 | 1160 | | |
1153 | 1161 | | |
1154 | 1162 | | |
1155 | 1163 | | |
1156 | 1164 | | |
1157 | | - | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
1158 | 1168 | | |
1159 | 1169 | | |
1160 | 1170 | | |
| 1171 | + | |
1161 | 1172 | | |
1162 | 1173 | | |
1163 | 1174 | | |
1164 | | - | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
1165 | 1181 | | |
1166 | | - | |
| 1182 | + | |
1167 | 1183 | | |
1168 | 1184 | | |
1169 | 1185 | | |
| |||
1175 | 1191 | | |
1176 | 1192 | | |
1177 | 1193 | | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
1178 | 1198 | | |
1179 | 1199 | | |
1180 | 1200 | | |
| |||
0 commit comments