From ce076383a8578626a7eac37533cba26dece1c877 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Mon, 7 Aug 2017 17:10:42 +0200 Subject: [PATCH] doc: Add comment to use ValueFromAmount/AmountFromValue for JSON, not utilmoneystr --- src/utilmoneystr.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utilmoneystr.h b/src/utilmoneystr.h index 5839b073447..bc885ee1675 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);