Replace vAnchorCache with a cache size counter

The anchor is obtained from the returned witnesses; since all witnesses are to
the same point (the latest blockchain tip), they all have the same root.
This commit is contained in:
Jack Grigg
2016-08-31 14:13:28 +12:00
parent 3fac1020e7
commit 4086e5ce98
5 changed files with 27 additions and 21 deletions

View File

@@ -580,10 +580,11 @@ private:
public:
/*
* Cached anchors corresponding to the cached incremental witnesses for the
* notes in our wallet.
* Size of the incremental witness cache for the notes in our wallet.
* This will always be greater than or equal to the size of the largest
* incremental witness cache in any transaction in mapWallet.
*/
std::list<uint256> vAnchorCache;
int64_t nWitnessCacheSize;
protected:
void IncrementNoteWitnesses(const CBlockIndex* pindex,