diff --git a/src/ripple/rpc/impl/Utilities.cpp b/src/ripple/rpc/impl/Utilities.cpp index ca4c7b847..20fc727c2 100644 --- a/src/ripple/rpc/impl/Utilities.cpp +++ b/src/ripple/rpc/impl/Utilities.cpp @@ -32,7 +32,9 @@ addPaymentDeliveredAmount ( { STTx::pointer serializedTx; - if (transaction) + // We only want to add a "delivered_amount" field if the transaction + // succeeded - otherwise nothing could have been delivered. + if (transaction && transaction->getResult () == tesSUCCESS) serializedTx = transaction->getSTransaction (); if (serializedTx && serializedTx->getTxnType () == ttPAYMENT)