Add header file that got lost in the shuffle

This commit is contained in:
Duke Leto
2020-12-16 23:35:28 -05:00
parent 1a481f401c
commit 01f4fae6a7
3 changed files with 2107 additions and 7 deletions

View File

@@ -526,10 +526,10 @@ unsigned int CCoinsViewCache::GetCacheSize() const {
const CTxOut &CCoinsViewCache::GetOutputFor(const CTxIn& input) const
{
const CCoins* coins = AccessCoins(input.prevout.hash);
fprintf(stderr, "GetOutputFor: input=%s", input.ToString().c_str());
fprintf(stderr, "GetOutputFor: prevout n=%d,txid=%s\n", input.prevout.n, input.prevout.hash.ToString().c_str());
//fprintf(stderr, "GetOutputFor: input=%s", input.ToString().c_str());
//fprintf(stderr, "GetOutputFor: prevout n=%d,txid=%s\n", input.prevout.n, input.prevout.hash.ToString().c_str());
assert(coins && coins->IsAvailable(input.prevout.n));
fprintf(stderr, "GetOutputFor: IsAvailable\n");
//fprintf(stderr, "GetOutputFor: IsAvailable\n");
return coins->vout[input.prevout.n];
}

View File

@@ -240,7 +240,7 @@ public:
bool IsAvailable(unsigned int nPos) const {
//fprintf(stderr,"IsAvailable(nPos=%d), vout.size()=%li, vout[%d].IsNull()=%d", nPos, vout.size(), nPos, vout[nPos].IsNull() );
//fprintf(stderr,"IsAvailable(nPos=%d), vout.size()=%li, vout[%d]=%d", nPos, vout.size(), nPos, vout[nPos] );
fprintf(stderr,"IsAvailable(nPos=%d), vout.size()=%li", nPos, vout.size() );
//fprintf(stderr,"IsAvailable(nPos=%d), vout.size()=%li", nPos, vout.size() );
return (nPos < vout.size() && !vout[nPos].IsNull());
}
@@ -569,9 +569,7 @@ private:
CCoinsMap::iterator FetchCoins(const uint256 &txid);
CCoinsMap::const_iterator FetchCoins(const uint256 &txid) const;
/**
* By making the copy constructor private, we prevent accidentally using it when one intends to create a cache on top of a base cache.
*/
// By making the copy constructor private, we prevent accidentally using it when one intends to create a cache on top of a base cache.
CCoinsViewCache(const CCoinsViewCache &);
//! Generalized interface for popping anchors

2102
src/hush_bitcoind.h Normal file

File diff suppressed because it is too large Load Diff