We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c8a9ae commit 21d4afaCopy full SHA for 21d4afa
src/coins.h
@@ -297,6 +297,9 @@ class CCoinsViewCache : public CCoinsViewBacked
297
void AddCoins(CCoinsViewCache& cache, const CTransaction& tx, int nHeight);
298
299
//! 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.
303
const Coin& AccessByTxid(const CCoinsViewCache& cache, const uint256& txid);
304
305
#endif // BITCOIN_COINS_H
0 commit comments