Skip to content

Commit ce07638

Browse files
committed
doc: Add comment to use ValueFromAmount/AmountFromValue for JSON, not utilmoneystr
1 parent ec05c50 commit ce07638

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utilmoneystr.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
#include "amount.h"
1616

17+
/* Do not use these functions to represent or parse monetary amounts to or from
18+
* JSON but use AmountFromValue and ValueFromAmount for that.
19+
*/
1720
std::string FormatMoney(const CAmount& n);
1821
bool ParseMoney(const std::string& str, CAmount& nRet);
1922
bool ParseMoney(const char* pszIn, CAmount& nRet);

0 commit comments

Comments
 (0)