File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -561,10 +561,10 @@ A few guidelines for introducing and reviewing new RPC interfaces:
561
561
which is error prone, and it is easy to get things such as escaping wrong.
562
562
JSON already supports nested data structures, no need to re-invent the wheel.
563
563
564
- - * Exception* : AmountToValue can parse amounts as string. This was introduced because many JSON
564
+ - * Exception* : AmountFromValue can parse amounts as string. This was introduced because many JSON
565
565
parsers and formatters hard-code handling decimal numbers as floating point
566
566
values, resulting in potential loss of precision. This is unacceptable for
567
- monetary values. ** Always** use ` AmountToValue ` and ` ValueToAmount ` when
567
+ monetary values. ** Always** use ` AmountFromValue ` and ` ValueFromAmount ` when
568
568
inputting or outputting monetary values. The only exceptions to this are
569
569
` prioritisetransaction ` and ` getblocktemplate ` because their interface
570
570
is specified as-is in BIP22.
You can’t perform that action at this time.
0 commit comments