diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2020-05-03 18:41:01 +0000 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2020-05-03 18:42:14 +0000 |
commit | b56607a89ba112083f2b0a7b64ab18d66b26e2be (patch) | |
tree | 2577d5df49e49317522c15c0907976b46e917651 /src/coins.cpp | |
parent | 844d2070a2c0106bb7a54be5cad7d4da4d9cd55e (diff) |
Remove CCoinsViewCache::GetValueIn(...)
Diffstat (limited to 'src/coins.cpp')
-rw-r--r-- | src/coins.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/coins.cpp b/src/coins.cpp index 6b4cb2aec7..7b76c13f98 100644 --- a/src/coins.cpp +++ b/src/coins.cpp @@ -233,18 +233,6 @@ unsigned int CCoinsViewCache::GetCacheSize() const { return cacheCoins.size(); } -CAmount CCoinsViewCache::GetValueIn(const CTransaction& tx) const -{ - if (tx.IsCoinBase()) - return 0; - - CAmount nResult = 0; - for (unsigned int i = 0; i < tx.vin.size(); i++) - nResult += AccessCoin(tx.vin[i].prevout).out.nValue; - - return nResult; -} - bool CCoinsViewCache::HaveInputs(const CTransaction& tx) const { if (!tx.IsCoinBase()) { |