From 24e44c354d5b9174cb9cb7d157a985e197aa7886 Mon Sep 17 00:00:00 2001 From: Russell Yanofsky Date: Wed, 7 Jun 2017 13:00:11 -0400 Subject: 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. --- src/init.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/init.cpp') diff --git a/src/init.cpp b/src/init.cpp index 33023a1800..8d161004b0 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -162,7 +162,6 @@ public: // Writes do not need similar protection, as failure to write is handled by the caller. }; -static CCoinsViewDB *pcoinsdbview = NULL; static CCoinsViewErrorCatcher *pcoinscatcher = NULL; static std::unique_ptr globalVerifyHandle; -- cgit v1.2.3