Add 'delivered_amount' to Transaction JSON (RIPD-643):

The synthetic field 'delivered_amount' can be used to determine the exact
amount delivered by a Payment without having to check the DeliveredAmount
field, if present, or the Amount field otherwise.

The field is only returned when metadata is available and the data is not
returned in binary format.
This commit is contained in:
Nik Bougalis
2014-12-30 16:55:54 -08:00
parent 98d5eefc86
commit 07737c6e5b
7 changed files with 132 additions and 55 deletions

View File

@@ -33,6 +33,7 @@
#include <ripple/rpc/impl/RPCHandler.cpp>
#include <ripple/rpc/impl/Status.cpp>
#include <ripple/rpc/impl/Yield.cpp>
#include <ripple/rpc/impl/Utilities.cpp>
#include <ripple/rpc/handlers/Handlers.h>
#include <ripple/rpc/handlers/AccountCurrencies.cpp>