Skip to content

Commit 21d4afa

Browse files
committed
Comment clarifications in coins.cpp
1 parent 3c8a9ae commit 21d4afa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/coins.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ class CCoinsViewCache : public CCoinsViewBacked
297297
void AddCoins(CCoinsViewCache& cache, const CTransaction& tx, int nHeight);
298298

299299
//! Utility function to find any unspent output with a given txid.
300+
// This function can be quite expensive because in the event of a transaction
301+
// which is not found in the cache, it can cause up to MAX_OUTPUTS_PER_BLOCK
302+
// lookups to database, so it should be used with care.
300303
const Coin& AccessByTxid(const CCoinsViewCache& cache, const uint256& txid);
301304

302305
#endif // BITCOIN_COINS_H

0 commit comments

Comments
 (0)