rpc: Move ValueFromAmount to core_write
commit46347add438d49a69f34a3f2ab755feda7daff10
authorWladimir J. van der Laan <laanwj@gmail.com>
Mon, 7 Aug 2017 12:38:39 +0000 (7 14:38 +0200)
committerWladimir J. van der Laan <laanwj@gmail.com>
Mon, 7 Aug 2017 15:01:21 +0000 (7 17:01 +0200)
tree24025b570a23124335f6ce839a797bfc291102f7
parentdac37823d4799477b19434d4d53c74c4af455c76
rpc: Move ValueFromAmount to core_write

This is necessary because core_write has to write amounts in
TxToUniv, and mistakingly uses FormatMoney for that
(which is only for debugging).

We don't move AmountFromValue at the same time, as
this is more challenging due to the RPCError depencency
there.
src/core_io.h
src/core_write.cpp
src/rpc/misc.cpp
src/rpc/net.cpp
src/rpc/server.cpp
src/rpc/server.h
src/test/rpc_tests.cpp