diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2017-06-07 13:00:11 -0400 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2017-06-07 13:00:11 -0400 |
commit | 24e44c354d5b9174cb9cb7d157a985e197aa7886 (patch) | |
tree | d48625d1dd888a11f8f73050daabc6a156802eff /src/validation.cpp | |
parent | bea5b00cfe95cd37832305c0f93c339a22a7d79d (diff) |
Don't return stale data from CCoinsViewCache::Cursor()
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.
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index de65839eef..b83c677cf4 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -175,6 +175,7 @@ CBlockIndex* FindForkInGlobalIndex(const CChain& chain, const CBlockLocator& loc return chain.Genesis(); } +CCoinsViewDB *pcoinsdbview = NULL; CCoinsViewCache *pcoinsTip = NULL; CBlockTreeDB *pblocktree = NULL; |