Commit 3be62ae
committed
Get rid of ambiguous OutputType::NONE value
Based on suggestion by Pieter Wuille <[email protected]> at
#12119 (comment)
After #12119, the NONE output type was overloaded to refer to either an output
type that couldn't be parsed, or to an automatic change output mode. This
change drops the NONE enum and uses a simple bool indicate parse failure, and a
new CHANGE_AUTO enum to refer the change output type.
This change is almost a pure refactoring except it makes RPCs reject empty
string ("") address types instead of treating them like they were unset. This
simplifies the parsing code a little bit and could prevent RPC usage mistakes.
It's noted in the release notes.1 parent ee7b67e commit 3be62ae
File tree
5 files changed
+36
-29
lines changed- doc
- src
- qt
- wallet
5 files changed
+36
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
| 646 | + | |
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | | - | |
| 167 | + | |
169 | 168 | | |
170 | 169 | | |
171 | 170 | | |
| |||
259 | 258 | | |
260 | 259 | | |
261 | 260 | | |
262 | | - | |
| 261 | + | |
263 | 262 | | |
264 | | - | |
265 | | - | |
| 263 | + | |
266 | 264 | | |
267 | 265 | | |
268 | 266 | | |
| |||
1223 | 1221 | | |
1224 | 1222 | | |
1225 | 1223 | | |
1226 | | - | |
1227 | | - | |
| 1224 | + | |
1228 | 1225 | | |
1229 | 1226 | | |
1230 | 1227 | | |
| |||
3183 | 3180 | | |
3184 | 3181 | | |
3185 | 3182 | | |
3186 | | - | |
3187 | | - | |
| 3183 | + | |
| 3184 | + | |
3188 | 3185 | | |
3189 | 3186 | | |
3190 | 3187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2647 | 2647 | | |
2648 | 2648 | | |
2649 | 2649 | | |
2650 | | - | |
| 2650 | + | |
2651 | 2651 | | |
2652 | 2652 | | |
2653 | 2653 | | |
| |||
4012 | 4012 | | |
4013 | 4013 | | |
4014 | 4014 | | |
4015 | | - | |
4016 | | - | |
| 4015 | + | |
4017 | 4016 | | |
4018 | 4017 | | |
4019 | 4018 | | |
4020 | 4019 | | |
4021 | | - | |
4022 | | - | |
4023 | | - | |
4024 | | - | |
| 4020 | + | |
4025 | 4021 | | |
4026 | 4022 | | |
4027 | 4023 | | |
| |||
4209 | 4205 | | |
4210 | 4206 | | |
4211 | 4207 | | |
4212 | | - | |
| 4208 | + | |
4213 | 4209 | | |
4214 | | - | |
4215 | | - | |
4216 | | - | |
4217 | | - | |
| 4210 | + | |
| 4211 | + | |
| 4212 | + | |
4218 | 4213 | | |
4219 | | - | |
| 4214 | + | |
| 4215 | + | |
4220 | 4216 | | |
4221 | | - | |
4222 | | - | |
4223 | | - | |
| 4217 | + | |
| 4218 | + | |
4224 | 4219 | | |
| 4220 | + | |
4225 | 4221 | | |
4226 | 4222 | | |
4227 | 4223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
105 | 112 | | |
106 | 113 | | |
107 | 114 | | |
108 | 115 | | |
109 | 116 | | |
| 117 | + | |
| 118 | + | |
110 | 119 | | |
111 | 120 | | |
112 | 121 | | |
| |||
988 | 997 | | |
989 | 998 | | |
990 | 999 | | |
991 | | - | |
| 1000 | + | |
992 | 1001 | | |
993 | 1002 | | |
994 | 1003 | | |
| |||
1232 | 1241 | | |
1233 | 1242 | | |
1234 | 1243 | | |
1235 | | - | |
| 1244 | + | |
1236 | 1245 | | |
1237 | 1246 | | |
1238 | 1247 | | |
| |||
0 commit comments