diff options
| author | Matt Corallo <[email protected]> | 2015-10-21 17:41:40 -0700 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2015-12-01 15:50:39 -0800 |
| commit | 74d0f902628472cd0cee66121ef0311eec201c40 (patch) | |
| tree | 7aa06dc2b0bc863b3b60b340d3a8919283b13650 /src/coins.h | |
| parent | Merge pull request #6898 (diff) | |
| download | discoin-74d0f902628472cd0cee66121ef0311eec201c40.tar.xz discoin-74d0f902628472cd0cee66121ef0311eec201c40.zip | |
Add method to remove a tx from CCoinsViewCache if it is unchanged
Diffstat (limited to 'src/coins.h')
| -rw-r--r-- | src/coins.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/coins.h b/src/coins.h index d17442210..5beea711b 100644 --- a/src/coins.h +++ b/src/coins.h @@ -437,6 +437,12 @@ public: */ bool Flush(); + /** + * Removes the transaction with the given hash from the cache, if it is + * not modified. + */ + void Uncache(const uint256 &txid); + //! Calculate the size of the cache (in number of transactions) unsigned int GetCacheSize() const; |