Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix concurrency-related bugs in ActivateBestChain
If multiple threads are invoking ActivateBestChain, it was possible to have them working towards different tips, and we could arrive at a less work tip than we should. Fix this by introducing a ChainState lock which must be held for the entire duration of ActivateBestChain to enforce exclusion in ABC. Github-Pull: #2290 Rebased-From: a51a755
- Loading branch information