txdb: Add Cursor() method to CCoinsView to iterate over UTXO set

Add a method Cursor() to CCoinsView that returns a cursor which can be
used to iterate over the whole UTXO set.

- rpc: Change gettxoutsetinfo to use new Cursor method

- txdb: Remove GetStats method - Now that GetStats is implemented in
  terms of Cursor, remove it.
This commit is contained in:
Wladimir J. van der Laan
2016-03-28 18:18:30 +02:00
parent 1b2460bd58
commit 509cb006d5
6 changed files with 148 additions and 57 deletions

View File

@@ -61,8 +61,6 @@ public:
hashBestBlock_ = hashBlock;
return true;
}
bool GetStats(CCoinsStats& stats) const { return false; }
};
class CCoinsViewCacheTest : public CCoinsViewCache