diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-08-07 14:18:47 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-08-07 17:01:21 +0200 |
| commit | dac37823d4799477b19434d4d53c74c4af455c76 (patch) | |
| tree | fcff4e77bd3be2c3b47ee2a6ee46d1667d81f3aa /doc/developer-notes.md | |
| parent | Merge #10995: Fix resendwallettransactions assert failure if -walletbroadcast=0 (diff) | |
| download | discoin-dac37823d4799477b19434d4d53c74c4af455c76.tar.xz discoin-dac37823d4799477b19434d4d53c74c4af455c76.zip | |
doc: Correct AmountFromValue/ValueFromAmount names
Diffstat (limited to 'doc/developer-notes.md')
| -rw-r--r-- | doc/developer-notes.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/developer-notes.md b/doc/developer-notes.md index 458e7bcbf..d783a7a8a 100644 --- a/doc/developer-notes.md +++ b/doc/developer-notes.md @@ -561,10 +561,10 @@ A few guidelines for introducing and reviewing new RPC interfaces: which is error prone, and it is easy to get things such as escaping wrong. JSON already supports nested data structures, no need to re-invent the wheel. - - *Exception*: AmountToValue can parse amounts as string. This was introduced because many JSON + - *Exception*: AmountFromValue can parse amounts as string. This was introduced because many JSON parsers and formatters hard-code handling decimal numbers as floating point values, resulting in potential loss of precision. This is unacceptable for - monetary values. **Always** use `AmountToValue` and `ValueToAmount` when + monetary values. **Always** use `AmountFromValue` and `ValueFromAmount` when inputting or outputting monetary values. The only exceptions to this are `prioritisetransaction` and `getblocktemplate` because their interface is specified as-is in BIP22. |