diff options
Diffstat (limited to 'src/utilmoneystr.h')
-rw-r--r-- | src/utilmoneystr.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/utilmoneystr.h b/src/utilmoneystr.h index 6a153db5fa..1cbec49858 100644 --- a/src/utilmoneystr.h +++ b/src/utilmoneystr.h @@ -1,5 +1,5 @@ // Copyright (c) 2009-2010 Satoshi Nakamoto -// Copyright (c) 2009-2014 The Bitcoin developers +// Copyright (c) 2009-2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. @@ -12,9 +12,12 @@ #include <stdint.h> #include <string> -#include "amount.h" +#include <amount.h> -std::string FormatMoney(const CAmount& n, bool fPlus=false); +/* Do not use these functions to represent or parse monetary amounts to or from + * JSON but use AmountFromValue and ValueFromAmount for that. + */ +std::string FormatMoney(const CAmount& n); bool ParseMoney(const std::string& str, CAmount& nRet); bool ParseMoney(const char* pszIn, CAmount& nRet); |