Changeset View
Changeset View
Standalone View
Standalone View
src/coins.h
Show First 20 Lines • Show All 298 Lines • ▼ Show 20 Lines | |||||
// When check is true, the underlying view may be queried to determine whether | // When check is true, the underlying view may be queried to determine whether | ||||
// an addition is an overwrite. | // an addition is an overwrite. | ||||
// TODO: pass in a boolean to limit these possible overwrites to known | // TODO: pass in a boolean to limit these possible overwrites to known | ||||
// (pre-BIP34) cases. | // (pre-BIP34) cases. | ||||
void AddCoins(CCoinsViewCache &cache, const CTransaction &tx, int nHeight, | void AddCoins(CCoinsViewCache &cache, const CTransaction &tx, int nHeight, | ||||
bool check = false); | bool check = false); | ||||
//! Utility function to find any unspent output with a given txid. | //! Utility function to find any unspent output with a given txid. | ||||
const Coin &AccessByTxid(const CCoinsViewCache &cache, const uint256 &txid); | const Coin &AccessByTxid(const CCoinsViewCache &cache, const TxId &txid); | ||||
#endif // BITCOIN_COINS_H | #endif // BITCOIN_COINS_H |