diff options
| author | Ross Nicoll <[email protected]> | 2018-01-01 16:24:14 +0000 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2018-09-19 19:24:06 +0100 |
| commit | c6eeab75a1c70b6ad63854e036e5843b7f104d31 (patch) | |
| tree | d7e369806b4e5d386820ea031c5cc5083076afbe /src/rpc/server.h | |
| parent | Update checkpoints and chain work (#1410) (diff) | |
| download | discoin-c6eeab75a1c70b6ad63854e036e5843b7f104d31.tar.xz discoin-c6eeab75a1c70b6ad63854e036e5843b7f104d31.zip | |
Change count type used by `gettxoutsetinfo` (#1415)
changing CAmount (is a int64_t) to arith_uint256 for nTotalAmount in CCoinsStats to prevent overflow
Diffstat (limited to 'src/rpc/server.h')
| -rw-r--r-- | src/rpc/server.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/server.h b/src/rpc/server.h index 52f82866d..2ea9326ac 100644 --- a/src/rpc/server.h +++ b/src/rpc/server.h @@ -7,6 +7,7 @@ #define BITCOIN_RPCSERVER_H #include "amount.h" +#include "arith_uint256.h" #include "rpc/protocol.h" #include "uint256.h" @@ -193,6 +194,7 @@ extern std::vector<unsigned char> ParseHexO(const UniValue& o, std::string strKe extern int64_t nWalletUnlockTime; extern CAmount AmountFromValue(const UniValue& value); extern UniValue ValueFromAmount(const CAmount& amount); +extern UniValue ValueFromAmount(const arith_uint256& amount); extern double GetDifficulty(const CBlockIndex* blockindex = NULL); extern std::string HelpRequiringPassphrase(); extern std::string HelpExampleCli(const std::string& methodname, const std::string& args); |