aboutsummaryrefslogtreecommitdiff
path: root/src/txdb.cpp
diff options
context:
space:
mode:
authorPatrick Lodder <[email protected]>2015-08-07 11:45:02 +0200
committerPatrick Lodder <[email protected]>2015-08-07 11:45:02 +0200
commitc15e5cebc604d7d75b389c42902b3ab7ab40eb0d (patch)
tree0b63a5f69f9d417f6c2d7cebc76ae3ffcf98066e /src/txdb.cpp
parentMerge pull request #1220 from rnicoll/1.10-paymentprotocol (diff)
parentchanging CAmount (is a int64_t) to arith_uint256 for nTotalAmount in CCoinsSt... (diff)
downloaddiscoin-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.cpp3
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 {