mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Only report 'delivered_amount' for executed payments (RIPD-827)
This commit is contained in:
committed by
Tom Ritchford
parent
6c81ea846c
commit
040982e321
@@ -32,7 +32,9 @@ addPaymentDeliveredAmount (
|
|||||||
{
|
{
|
||||||
STTx::pointer serializedTx;
|
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 ();
|
serializedTx = transaction->getSTransaction ();
|
||||||
|
|
||||||
if (serializedTx && serializedTx->getTxnType () == ttPAYMENT)
|
if (serializedTx && serializedTx->getTxnType () == ttPAYMENT)
|
||||||
|
|||||||
Reference in New Issue
Block a user