Commit 38cc045
committed
blockman: Replace m_reindexing with m_blockfiles_indexed
This is a just a mechanical change, renaming and inverting the meaning of the
indexing variable.
"m_blockfiles_indexed" is a more straightforward name for this variable because
this variable just indicates whether or not <datadir>/blocks/blk?????.dat files
have been indexed in the <datadir>/blocks/index LevelDB database. The name
"m_reindexing" was more confusing, it could be true even if -reindex was not
specified, and false when it was specified. Also, the previous name
unnecessarily required thinking about the whole reindexing process just to
understand simple checks in validation code about whether blocks were indexed.
Motivation for this change is to follow up on previous commit, moving away from
having multiple variables called "reindex" internally, and instead naming
variables individually after what they do and represent.1 parent 9c643e7 commit 38cc045
File tree
6 files changed
+22
-23
lines changed- src
- node
6 files changed
+22
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1669 | 1669 | | |
1670 | 1670 | | |
1671 | 1671 | | |
1672 | | - | |
| 1672 | + | |
1673 | 1673 | | |
1674 | 1674 | | |
1675 | 1675 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
| 554 | + | |
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
| |||
1182 | 1182 | | |
1183 | 1183 | | |
1184 | 1184 | | |
1185 | | - | |
| 1185 | + | |
1186 | 1186 | | |
1187 | 1187 | | |
1188 | 1188 | | |
| |||
1205 | 1205 | | |
1206 | 1206 | | |
1207 | 1207 | | |
1208 | | - | |
| 1208 | + | |
1209 | 1209 | | |
1210 | 1210 | | |
1211 | 1211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | | - | |
278 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
279 | 280 | | |
280 | | - | |
| 281 | + | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| |||
358 | 359 | | |
359 | 360 | | |
360 | 361 | | |
361 | | - | |
| 362 | + | |
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
| |||
85 | 83 | | |
86 | 84 | | |
87 | 85 | | |
88 | | - | |
| 86 | + | |
89 | 87 | | |
90 | 88 | | |
91 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2641 | 2641 | | |
2642 | 2642 | | |
2643 | 2643 | | |
2644 | | - | |
| 2644 | + | |
2645 | 2645 | | |
2646 | 2646 | | |
2647 | 2647 | | |
| |||
3254 | 3254 | | |
3255 | 3255 | | |
3256 | 3256 | | |
3257 | | - | |
| 3257 | + | |
3258 | 3258 | | |
3259 | 3259 | | |
3260 | | - | |
| 3260 | + | |
3261 | 3261 | | |
3262 | 3262 | | |
3263 | 3263 | | |
| |||
3279 | 3279 | | |
3280 | 3280 | | |
3281 | 3281 | | |
3282 | | - | |
| 3282 | + | |
3283 | 3283 | | |
3284 | 3284 | | |
3285 | 3285 | | |
| |||
3398 | 3398 | | |
3399 | 3399 | | |
3400 | 3400 | | |
3401 | | - | |
| 3401 | + | |
3402 | 3402 | | |
3403 | 3403 | | |
3404 | 3404 | | |
| |||
3624 | 3624 | | |
3625 | 3625 | | |
3626 | 3626 | | |
3627 | | - | |
| 3627 | + | |
3628 | 3628 | | |
3629 | 3629 | | |
3630 | 3630 | | |
| |||
4263 | 4263 | | |
4264 | 4264 | | |
4265 | 4265 | | |
4266 | | - | |
| 4266 | + | |
4267 | 4267 | | |
4268 | 4268 | | |
4269 | 4269 | | |
| |||
4790 | 4790 | | |
4791 | 4791 | | |
4792 | 4792 | | |
4793 | | - | |
| 4793 | + | |
4794 | 4794 | | |
4795 | 4795 | | |
4796 | 4796 | | |
| |||
4961 | 4961 | | |
4962 | 4962 | | |
4963 | 4963 | | |
4964 | | - | |
| 4964 | + | |
4965 | 4965 | | |
4966 | 4966 | | |
4967 | 4967 | | |
| |||
0 commit comments