From 8c24f7eb031fdaeaa20774e689d1702734703615 Mon Sep 17 00:00:00 2001 From: seelabs Date: Mon, 29 Jun 2015 10:28:53 -0400 Subject: [PATCH] Account for deferred credits of parent views --- src/ripple/app/paths/impl/PaymentView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ripple/app/paths/impl/PaymentView.cpp b/src/ripple/app/paths/impl/PaymentView.cpp index 5939c76c8b..691f4a8656 100644 --- a/src/ripple/app/paths/impl/PaymentView.cpp +++ b/src/ripple/app/paths/impl/PaymentView.cpp @@ -28,6 +28,9 @@ PaymentView::balanceHook (AccountID const& account, AccountID const& issuer, STAmount const& amount) const { + if (pv_) + return tab_.adjustedBalance ( + account, issuer, pv_->balanceHook (account, issuer, amount)); return tab_.adjustedBalance( account, issuer, amount); }