aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.cpp
diff options
context:
space:
mode:
authorJesse Cohen <[email protected]>2018-05-10 15:57:16 -0400
committerJesse Cohen <[email protected]>2018-05-12 12:44:32 -0400
commita3ae8e68739023e5dba9e5cb190e707ed4603316 (patch)
tree6995c621267b759e46cbda4b9141583a606dd765 /src/httpserver.cpp
parentDo not unlock cs_main in ABC unless we've actually made progress. (diff)
downloaddiscoin-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