Browse Source

doc: Add comment to use ValueFromAmount/AmountFromValue for JSON, not utilmoneystr

tags/v0.15.1
Wladimir J. van der Laan 3 years ago
parent
commit
ce076383a8
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/utilmoneystr.h

+ 3
- 0
src/utilmoneystr.h View File

@@ -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);

Loading…
Cancel
Save