Page MenuHomePhabricator

Don't return stale data from CCoinsViewCache::Cursor()
ClosedPublic

Authored by deadalnix on Oct 9 2018, 15:52.

Details

Summary

CCoinsViewCache doesn't actually support cursor iteration returning the
current contents of the cache, so raise an error when the cursor method is
called instead of returning a cursor that iterates over stale data.

Also update the gettxoutsetinfo RPC which was relying on the old behavior to be
explicit about which view it is returning data about.

This is a backport of Core PR10550

Test Plan
make check

Diff Detail

Repository
rABC Bitcoin ABC
Branch
nostaledata
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 3554
Build 5184: Bitcoin ABC Buildbot (legacy)
Build 5183: arc lint + arc unit