aboutsummaryrefslogtreecommitdiff
path: root/src/checkpoints.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2012-12-01 16:46:23 +0100
committerPieter Wuille <[email protected]>2012-12-02 01:43:35 +0100
commitd33a9218abda80d32239789f6ceaec6d68a290ce (patch)
treee0666c57d3c63f73ae496607d913baa0107a6404 /src/checkpoints.cpp
parentMerge pull request #2033 from sipa/kickconflicts (diff)
downloaddiscoin-d33a9218abda80d32239789f6ceaec6d68a290ce.tar.xz
discoin-d33a9218abda80d32239789f6ceaec6d68a290ce.zip
Make SetBestChain() atomic
In case a reorganisation fails, the internal state could become inconsistent (memory only). Previously, a cache per block connect or disconnect action was used, so blocks could not be applied in a partial way. Extend this to a cache for the entire reorganisation, making it atomic entirely. This also simplifies the code a bit.
Diffstat (limited to 'src/checkpoints.cpp')
0 files changed, 0 insertions, 0 deletions