diff options
| author | Pieter Wuille <[email protected]> | 2012-12-01 16:46:23 +0100 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-12-02 01:43:35 +0100 |
| commit | d33a9218abda80d32239789f6ceaec6d68a290ce (patch) | |
| tree | e0666c57d3c63f73ae496607d913baa0107a6404 /src/checkpoints.cpp | |
| parent | Merge pull request #2033 from sipa/kickconflicts (diff) | |
| download | discoin-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