mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 22:45:52 +00:00
JS: Correctly calculate affected accounts when routing account events.
This commit is contained in:
@@ -68,6 +68,8 @@ std::vector<RippleAddress> TransactionMetaSet::getAffectedAccounts()
|
||||
std::vector<RippleAddress> accounts;
|
||||
accounts.reserve(10);
|
||||
|
||||
// This code should match the behavior of the JS method:
|
||||
// Meta#getAffectedAccounts
|
||||
BOOST_FOREACH(const STObject& it, mNodes)
|
||||
{
|
||||
int index = it.getFieldIndex((it.getFName() == sfCreatedNode) ? sfNewFields : sfFinalFields);
|
||||
|
||||
Reference in New Issue
Block a user