diff options
| author | Alex Morcos <[email protected]> | 2017-06-08 12:15:04 -0400 |
|---|---|---|
| committer | Alex Morcos <[email protected]> | 2017-06-27 16:08:06 -0400 |
| commit | 21d4afa12fbf1e7f59b629060c9e10db213fe07a (patch) | |
| tree | b33e4fcb3dba39c7c4ba5106d3ba5e0a296347ea /src | |
| parent | Add belt-and-suspenders in DisconnectBlock (diff) | |
| download | discoin-21d4afa12fbf1e7f59b629060c9e10db213fe07a.tar.xz discoin-21d4afa12fbf1e7f59b629060c9e10db213fe07a.zip | |
Comment clarifications in coins.cpp
Diffstat (limited to 'src')
| -rw-r--r-- | src/coins.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/coins.h b/src/coins.h index 077545a55..7c1d6da2b 100644 --- a/src/coins.h +++ b/src/coins.h @@ -297,6 +297,9 @@ private: void AddCoins(CCoinsViewCache& cache, const CTransaction& tx, int nHeight); //! Utility function to find any unspent output with a given txid. +// This function can be quite expensive because in the event of a transaction +// which is not found in the cache, it can cause up to MAX_OUTPUTS_PER_BLOCK +// lookups to database, so it should be used with care. const Coin& AccessByTxid(const CCoinsViewCache& cache, const uint256& txid); #endif // BITCOIN_COINS_H |