diff options
| author | Ross Nicoll <[email protected]> | 2018-01-01 16:24:14 +0000 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2021-06-08 18:22:11 +0100 |
| commit | 30142014b7b8023ba869f73f7d44d19c20008cb1 (patch) | |
| tree | 87bc3bd37f60ddedaf921253c52b4b1707b50a61 /src/node | |
| parent | Merge pull request #2252 from rnicoll/1.21-auxpow-parameters (diff) | |
| download | discoin-30142014b7b8023ba869f73f7d44d19c20008cb1.tar.xz discoin-30142014b7b8023ba869f73f7d44d19c20008cb1.zip | |
Change count type used by `gettxoutsetinfo`
changing CAmount (is a int64_t) to arith_uint256 for nTotalAmount in CCoinsStats to prevent overflow
Diffstat (limited to 'src/node')
| -rw-r--r-- | src/node/coinstats.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node/coinstats.h b/src/node/coinstats.h index 2a7441c10..56a2ed1e1 100644 --- a/src/node/coinstats.h +++ b/src/node/coinstats.h @@ -7,6 +7,7 @@ #define BITCOIN_NODE_COINSTATS_H #include <amount.h> +#include <arith_uint256.h> #include <uint256.h> #include <cstdint> @@ -28,7 +29,7 @@ struct CCoinsStats uint64_t nBogoSize{0}; uint256 hashSerialized{}; uint64_t nDiskSize{0}; - CAmount nTotalAmount{0}; + arith_uint256 nTotalAmount{0}; //! The number of coins contained. uint64_t coins_count{0}; |