aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2014-09-03 09:37:47 +0200
committerPieter Wuille <[email protected]>2014-09-23 22:29:43 +0200
commit058b08c147a6d56b57221faa5b6fcdb83b4140b2 (patch)
treec8a44779f36d1c2b7a0fe41287eeddecb4aa4e77 /src/init.cpp
parentGet rid of CCoinsView's SetCoins and SetBestBlock. (diff)
downloaddiscoin-058b08c147a6d56b57221faa5b6fcdb83b4140b2.tar.xz
discoin-058b08c147a6d56b57221faa5b6fcdb83b4140b2.zip
Do not keep fully spent but unwritten CCoins entries cached.
Instead of storing CCoins entries directly in CCoinsMap, store a CCoinsCacheEntry which additionally keeps track of whether a particular entry is: * dirty: potentially different from its parent view. * fresh: the parent view is known to not have a non-pruned version. This allows us to skip non-dirty cache entries when pushing batches of changes up, and to remove CCoins entries about transactions that are fully spent before the parent cache learns about them.
Diffstat (limited to 'src/init.cpp')
0 files changed, 0 insertions, 0 deletions