diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-08-07 17:10:42 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-08-07 17:10:42 +0200 |
commit | ce076383a8578626a7eac37533cba26dece1c877 (patch) | |
tree | 246aa8c392599b311e45aee633acce05129adf40 | |
parent | ec05c508c681b01ca990f091f346f5171538ce8d (diff) |
doc: Add comment to use ValueFromAmount/AmountFromValue for JSON, not utilmoneystr
-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 5839b07344..bc885ee167 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); |