Browse Source

Fix outdated comment

pull/4/head
Sean Bowe 6 years ago
parent
commit
e390a475c1
  1. 4
      src/coins.cpp

4
src/coins.cpp

@ -201,9 +201,9 @@ void CCoinsViewCache::AbstractPushAnchor(
auto currentRoot = GetBestAnchor(type);
// We don't want to overwrite an anchor we already have.
// This occurs when a block doesn't modify mapSproutAnchors at all,
// This occurs when a block doesn't modify mapAnchors at all,
// because there are no joinsplits. We could get around this a
// different way (make all blocks modify mapSproutAnchors somehow)
// different way (make all blocks modify mapAnchors somehow)
// but this is simpler to reason about.
if (currentRoot != newrt) {
auto insertRet = cacheAnchors.insert(std::make_pair(newrt, CacheEntry()));

Loading…
Cancel
Save