mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-14 06:32:33 +01:00
Merge #10558: Address nits from per-utxo change
21d4afa12Comment clarifications in coins.cpp (Alex Morcos)3c8a9aeffAdd belt-and-suspenders in DisconnectBlock (Alex Morcos) Tree-SHA512: d83e12ed71674faaaaebc03ffa1e2276984c35a29db419268ac9e14a45b33ccab716e3606dff8cfe1dcee4bec6e4794d2ca90341f10d5684be80e3fee61addf8
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user