diff options
| author | Jesse Cohen <[email protected]> | 2018-05-10 15:57:16 -0400 |
|---|---|---|
| committer | Jesse Cohen <[email protected]> | 2018-05-12 12:44:32 -0400 |
| commit | a3ae8e68739023e5dba9e5cb190e707ed4603316 (patch) | |
| tree | 6995c621267b759e46cbda4b9141583a606dd765 /src/httpserver.cpp | |
| parent | Do not unlock cs_main in ABC unless we've actually made progress. (diff) | |
| download | discoin-a3ae8e68739023e5dba9e5cb190e707ed4603316.tar.xz discoin-a3ae8e68739023e5dba9e5cb190e707ed4603316.zip | |
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.
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions