Commit 1598a15
committed
refactor: Deduplicate Chainstate activation code
Move duplicate code from ChainstateManager::ActivateSnapshot and
ChainstateManager::ActivateExistingSnapshot methods to a new
ChainstateManager::AddChainstate method.
The "AddChainstate" method name doesn't mention snapshots even though it is
only used to add snapshot chainstates now, because it becomes more generalized
in a later commit in this PR ("refactor: Add ChainstateManager::m_chainstates
member")1 parent 9fe927b commit 1598a15
File tree
3 files changed
+16
-32
lines changed- src
- test
3 files changed
+16
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | | - | |
493 | | - | |
| 492 | + | |
494 | 493 | | |
495 | 494 | | |
496 | 495 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5796 | 5796 | | |
5797 | 5797 | | |
5798 | 5798 | | |
5799 | | - | |
5800 | | - | |
5801 | | - | |
| 5799 | + | |
| 5800 | + | |
5802 | 5801 | | |
5803 | | - | |
5804 | | - | |
5805 | | - | |
5806 | | - | |
5807 | | - | |
5808 | | - | |
5809 | | - | |
5810 | | - | |
5811 | | - | |
5812 | | - | |
5813 | | - | |
5814 | | - | |
5815 | | - | |
5816 | | - | |
| 5802 | + | |
5817 | 5803 | | |
5818 | 5804 | | |
5819 | 5805 | | |
5820 | | - | |
| 5806 | + | |
5821 | 5807 | | |
5822 | 5808 | | |
5823 | 5809 | | |
| |||
6288 | 6274 | | |
6289 | 6275 | | |
6290 | 6276 | | |
6291 | | - | |
| 6277 | + | |
| 6278 | + | |
| 6279 | + | |
6292 | 6280 | | |
6293 | 6281 | | |
6294 | 6282 | | |
6295 | | - | |
| 6283 | + | |
6296 | 6284 | | |
6297 | 6285 | | |
6298 | | - | |
6299 | | - | |
6300 | | - | |
| 6286 | + | |
6301 | 6287 | | |
6302 | 6288 | | |
6303 | 6289 | | |
6304 | 6290 | | |
6305 | | - | |
| 6291 | + | |
6306 | 6292 | | |
6307 | 6293 | | |
6308 | 6294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1315 | 1315 | | |
1316 | 1316 | | |
1317 | 1317 | | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
1318 | 1321 | | |
1319 | 1322 | | |
1320 | 1323 | | |
1321 | 1324 | | |
1322 | 1325 | | |
1323 | 1326 | | |
1324 | | - | |
1325 | | - | |
1326 | | - | |
1327 | | - | |
1328 | 1327 | | |
1329 | 1328 | | |
1330 | 1329 | | |
| |||
0 commit comments