Commit 5ab5341
committed
Merge bitcoin#14841: consensus: Move CheckBlock() call to critical section
c5ed6e7 Move CheckBlock() call to critical section (Hennadii Stepanov)
Pull request description:
This is an alternative to bitcoin#14803.
Refs:
- bitcoin#14058
- bitcoin#14072
- bitcoin#14803 (comment) by @gmaxwell
> It doesn't support multithreaded validation and there are lot of things that prevent that, which is why I was concerned. Why doesn't the lock on the block index or even cs main prevent concurrency here?
- bitcoin#14803 (comment) by @MarcoFalke
Tree-SHA512: 2152e97106e11da5763b2748234ecd2982daadab13a0da04215f4db60af802a44ab5700f32249137d122eb13fc2a02e0f2d561d364607d727d8c6ab879339afb2 files changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3530 | 3530 | | |
3531 | 3531 | | |
3532 | 3532 | | |
3533 | | - | |
3534 | | - | |
3535 | | - | |
3536 | 3533 | | |
| 3534 | + | |
| 3535 | + | |
3537 | 3536 | | |
3538 | 3537 | | |
| 3538 | + | |
| 3539 | + | |
| 3540 | + | |
3539 | 3541 | | |
3540 | 3542 | | |
3541 | 3543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | 4 | | |
8 | 5 | | |
9 | 6 | | |
| |||
0 commit comments