diff options
| author | Patrick Lodder <[email protected]> | 2015-08-07 11:45:02 +0200 |
|---|---|---|
| committer | Patrick Lodder <[email protected]> | 2015-08-07 11:45:02 +0200 |
| commit | c15e5cebc604d7d75b389c42902b3ab7ab40eb0d (patch) | |
| tree | 0b63a5f69f9d417f6c2d7cebc76ae3ffcf98066e /src/txdb.cpp | |
| parent | Merge pull request #1220 from rnicoll/1.10-paymentprotocol (diff) | |
| parent | changing CAmount (is a int64_t) to arith_uint256 for nTotalAmount in CCoinsSt... (diff) | |
| download | discoin-c15e5cebc604d7d75b389c42902b3ab7ab40eb0d.tar.xz discoin-c15e5cebc604d7d75b389c42902b3ab7ab40eb0d.zip | |
Merge pull request #1227 from kaykurokawa/1.10-dev
changing CAmount (is a int64_t) to arith_uint256 for nTotalAmount
Diffstat (limited to 'src/txdb.cpp')
| -rw-r--r-- | src/txdb.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/txdb.cpp b/src/txdb.cpp index 7eb857ed5..b6543e961 100644 --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -10,6 +10,7 @@ #include "main.h" #include "pow.h" #include "uint256.h" +#include "arith_uint256.h" #include <stdint.h> @@ -110,7 +111,7 @@ bool CCoinsViewDB::GetStats(CCoinsStats &stats) const { CHashWriter ss(SER_GETHASH, PROTOCOL_VERSION); stats.hashBlock = GetBestBlock(); ss << stats.hashBlock; - CAmount nTotalAmount = 0; + arith_uint256 nTotalAmount = 0; while (pcursor->Valid()) { boost::this_thread::interruption_point(); try { |