diff options
Diffstat (limited to 'src/coins.cpp')
-rw-r--r-- | src/coins.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/coins.cpp b/src/coins.cpp index 09fd2b13d0..59bcdce9c4 100644 --- a/src/coins.cpp +++ b/src/coins.cpp @@ -213,13 +213,6 @@ unsigned int CCoinsViewCache::GetCacheSize() const { return cacheCoins.size(); } -const CTxOut &CCoinsViewCache::GetOutputFor(const CTxIn& input) const -{ - const Coin& coin = AccessCoin(input.prevout); - assert(!coin.IsPruned()); - return coin.out; -} - CAmount CCoinsViewCache::GetValueIn(const CTransaction& tx) const { if (tx.IsCoinBase()) @@ -227,7 +220,7 @@ CAmount CCoinsViewCache::GetValueIn(const CTransaction& tx) const CAmount nResult = 0; for (unsigned int i = 0; i < tx.vin.size(); i++) - nResult += GetOutputFor(tx.vin[i]).nValue; + nResult += AccessCoin(tx.vin[i].prevout).out.nValue; return nResult; } |