diff options
| author | Mark Friedenbach <[email protected]> | 2014-04-22 15:46:19 -0700 |
|---|---|---|
| committer | Mark Friedenbach <[email protected]> | 2014-09-26 15:42:04 -0700 |
| commit | a372168e77a8a195613a02983f2589252698bf0f (patch) | |
| tree | b300a5f7aa007645c6ba2bd708e7a962fab2894b /src/coins.cpp | |
| parent | Merge pull request #4986 (diff) | |
| download | discoin-a372168e77a8a195613a02983f2589252698bf0f.tar.xz discoin-a372168e77a8a195613a02983f2589252698bf0f.zip | |
Use a typedef for monetary values
Diffstat (limited to 'src/coins.cpp')
| -rw-r--r-- | src/coins.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coins.cpp b/src/coins.cpp index 34485db2b..9b8d63d4e 100644 --- a/src/coins.cpp +++ b/src/coins.cpp @@ -171,12 +171,12 @@ const CTxOut &CCoinsViewCache::GetOutputFor(const CTxIn& input) const return coins->vout[input.prevout.n]; } -int64_t CCoinsViewCache::GetValueIn(const CTransaction& tx) const +CAmount CCoinsViewCache::GetValueIn(const CTransaction& tx) const { if (tx.IsCoinBase()) return 0; - int64_t nResult = 0; + CAmount nResult = 0; for (unsigned int i = 0; i < tx.vin.size(); i++) nResult += GetOutputFor(tx.vin[i]).nValue; |