Commit 20677ff
committed
validation: Guard all chainstates with cs_main
Since these chainstates are:
1. Also vulnerable to the race condition described in the previous
commit
2. Documented as having similar semantics as m_active_chainstate
we should also protect them with ::cs_main.1 parent f72d80b commit 20677ff
2 files changed
+10
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5159 | 5159 | | |
5160 | 5160 | | |
5161 | 5161 | | |
5162 | | - | |
| 5162 | + | |
5163 | 5163 | | |
5164 | 5164 | | |
5165 | 5165 | | |
| |||
5169 | 5169 | | |
5170 | 5170 | | |
5171 | 5171 | | |
| 5172 | + | |
5172 | 5173 | | |
5173 | 5174 | | |
5174 | 5175 | | |
| |||
5213 | 5214 | | |
5214 | 5215 | | |
5215 | 5216 | | |
5216 | | - | |
| 5217 | + | |
| 5218 | + | |
5217 | 5219 | | |
5218 | 5220 | | |
5219 | 5221 | | |
5220 | 5222 | | |
| 5223 | + | |
5221 | 5224 | | |
5222 | 5225 | | |
5223 | 5226 | | |
| |||
5227 | 5230 | | |
5228 | 5231 | | |
5229 | 5232 | | |
| 5233 | + | |
5230 | 5234 | | |
5231 | 5235 | | |
5232 | 5236 | | |
| |||
5242 | 5246 | | |
5243 | 5247 | | |
5244 | 5248 | | |
| 5249 | + | |
5245 | 5250 | | |
5246 | 5251 | | |
5247 | | - | |
5248 | | - | |
5249 | | - | |
5250 | | - | |
| 5252 | + | |
5251 | 5253 | | |
5252 | 5254 | | |
5253 | 5255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
805 | | - | |
| 805 | + | |
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
| |||
815 | 815 | | |
816 | 816 | | |
817 | 817 | | |
818 | | - | |
| 818 | + | |
819 | 819 | | |
820 | 820 | | |
821 | 821 | | |
| |||
0 commit comments