fix: Add CTID to all RPC's that includes transactions (#2011)

fixes #1998
This commit is contained in:
Peter Chen
2025-04-25 09:55:39 -04:00
committed by GitHub
parent 79e6f07863
commit 593d7298b1
17 changed files with 238 additions and 92 deletions

View File

@@ -191,7 +191,7 @@ SubscriptionManager::unsubBook(ripple::Book const& book, SubscriberSharedPtr con
void
SubscriptionManager::pubTransaction(data::TransactionAndMetadata const& txMeta, ripple::LedgerHeader const& lgrInfo)
{
transactionFeed_.pub(txMeta, lgrInfo, backend_, amendmentCenter_);
transactionFeed_.pub(txMeta, lgrInfo, backend_, amendmentCenter_, networkID_);
}
boost::json::object
@@ -210,4 +210,16 @@ SubscriptionManager::report() const
};
}
void
SubscriptionManager::setNetworkID(uint32_t const networkID)
{
networkID_ = networkID;
}
uint32_t
SubscriptionManager::getNetworkID() const
{
return networkID_;
}
} // namespace feed