diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-08-07 17:10:42 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-08-07 17:10:42 +0200 |
| commit | ce076383a8578626a7eac37533cba26dece1c877 (patch) | |
| tree | 246aa8c392599b311e45aee633acce05129adf40 /src | |
| parent | rpc: Use ValueFromAmount instead of FormatMoney in TxToUniv (diff) | |
| download | discoin-ce076383a8578626a7eac37533cba26dece1c877.tar.xz discoin-ce076383a8578626a7eac37533cba26dece1c877.zip | |
doc: Add comment to use ValueFromAmount/AmountFromValue for JSON, not utilmoneystr
Diffstat (limited to 'src')
| -rw-r--r-- | src/utilmoneystr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utilmoneystr.h b/src/utilmoneystr.h index 5839b0734..bc885ee16 100644 --- a/src/utilmoneystr.h +++ b/src/utilmoneystr.h @@ -14,6 +14,9 @@ #include "amount.h" +/* 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); |