Commit 386a994
committed
Key pool: Change ReturnDestination interface to take address instead of key
In order for ScriptPubKeyMan to be generic and work with future
ScriptPubKeyMans, ScriptPubKeyMan::ReturnDestination is changed to
take a CTxDestination instead of a CPubKey. Since LegacyScriptPubKeyMan
still deals with keys internally, a new map m_reserved_key_to_index is
added in order to track the keypool indexes that have been reserved.
The CPubKey argument of KeepDestination is also removed so that it is
more generic. Instead of taking a CPubKey or a CTxDestination, we just use
the nIndex given to find the pubkey.1 parent ba41aa4 commit 386a994
File tree
4 files changed
+20
-16
lines changed- src/wallet
4 files changed
+20
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1087 | 1087 | | |
1088 | 1088 | | |
1089 | 1089 | | |
1090 | | - | |
| 1090 | + | |
1091 | 1091 | | |
1092 | 1092 | | |
1093 | 1093 | | |
1094 | 1094 | | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
1095 | 1098 | | |
| 1099 | + | |
1096 | 1100 | | |
1097 | 1101 | | |
1098 | 1102 | | |
1099 | | - | |
| 1103 | + | |
1100 | 1104 | | |
1101 | 1105 | | |
1102 | 1106 | | |
| |||
1108 | 1112 | | |
1109 | 1113 | | |
1110 | 1114 | | |
1111 | | - | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
1112 | 1118 | | |
1113 | 1119 | | |
1114 | 1120 | | |
| |||
1130 | 1136 | | |
1131 | 1137 | | |
1132 | 1138 | | |
1133 | | - | |
| 1139 | + | |
1134 | 1140 | | |
1135 | 1141 | | |
1136 | 1142 | | |
| |||
1175 | 1181 | | |
1176 | 1182 | | |
1177 | 1183 | | |
| 1184 | + | |
| 1185 | + | |
1178 | 1186 | | |
1179 | 1187 | | |
1180 | 1188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
| 154 | + | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
| 250 | + | |
249 | 251 | | |
250 | 252 | | |
251 | 253 | | |
| |||
274 | 276 | | |
275 | 277 | | |
276 | 278 | | |
277 | | - | |
278 | | - | |
| 279 | + | |
| 280 | + | |
279 | 281 | | |
280 | 282 | | |
281 | 283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3305 | 3305 | | |
3306 | 3306 | | |
3307 | 3307 | | |
3308 | | - | |
3309 | 3308 | | |
3310 | 3309 | | |
3311 | | - | |
3312 | 3310 | | |
3313 | 3311 | | |
3314 | 3312 | | |
3315 | 3313 | | |
3316 | 3314 | | |
3317 | 3315 | | |
3318 | 3316 | | |
3319 | | - | |
| 3317 | + | |
3320 | 3318 | | |
3321 | 3319 | | |
3322 | | - | |
3323 | 3320 | | |
3324 | 3321 | | |
3325 | 3322 | | |
3326 | 3323 | | |
3327 | 3324 | | |
3328 | 3325 | | |
3329 | | - | |
| 3326 | + | |
3330 | 3327 | | |
3331 | 3328 | | |
3332 | | - | |
3333 | 3329 | | |
3334 | 3330 | | |
3335 | 3331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
151 | 149 | | |
152 | 150 | | |
153 | 151 | | |
| |||
0 commit comments