aboutsummaryrefslogtreecommitdiff
path: root/src/coins.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2017-06-28 11:23:11 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2017-06-28 11:44:22 -0700
commit90a002ea647dcea57a2ed4294eab77897168ba1d (patch)
tree77a518a5dbbe4c4f53203a11cdb3538a68ab7b6e /src/coins.h
parent30c21306c17165c3925fea4ac9d1a4763c6d2a99 (diff)
parent21d4afa12fbf1e7f59b629060c9e10db213fe07a (diff)
downloadbitcoin-90a002ea647dcea57a2ed4294eab77897168ba1d.tar.xz
Merge #10558: Address nits from per-utxo change
21d4afa12 Comment clarifications in coins.cpp (Alex Morcos) 3c8a9aeff Add belt-and-suspenders in DisconnectBlock (Alex Morcos) Tree-SHA512: d83e12ed71674faaaaebc03ffa1e2276984c35a29db419268ac9e14a45b33ccab716e3606dff8cfe1dcee4bec6e4794d2ca90341f10d5684be80e3fee61addf8
Diffstat (limited to 'src/coins.h')
-rw-r--r--src/coins.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/coins.h b/src/coins.h
index ff7719b724..efb5ce869c 100644
--- a/src/coins.h
+++ b/src/coins.h
@@ -306,6 +306,9 @@ private:
void AddCoins(CCoinsViewCache& cache, const CTransaction& tx, int nHeight, bool check = false);
//! 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