From 1b7d75d72df5fc00f24f179266da523705b65e83 Mon Sep 17 00:00:00 2001 From: gregtatcam Date: Thu, 22 Feb 2024 14:41:29 +0000 Subject: [PATCH] Handle account aggregation in STTx --- src/ripple/protocol/impl/STTx.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ripple/protocol/impl/STTx.cpp b/src/ripple/protocol/impl/STTx.cpp index 2bc436db0ef..47e145c5d60 100644 --- a/src/ripple/protocol/impl/STTx.cpp +++ b/src/ripple/protocol/impl/STTx.cpp @@ -143,9 +143,12 @@ STTx::getMentionedAccounts() const } else if (auto samt = dynamic_cast(&it)) { - auto const& issuer = samt->getIssuer(); - if (!isXRP(issuer)) - list.insert(issuer); + if (samt->isIssue()) + { + auto const& issuer = samt->getIssuer(); + if (!isXRP(issuer)) + list.insert(issuer); + } } }