Fixes #617
This commit is contained in:
cyan317
2023-05-02 13:24:23 +01:00
committed by GitHub
parent 4b2d53fc2f
commit 7776a5ffb6
6 changed files with 601 additions and 0 deletions

View File

@@ -247,6 +247,7 @@ SubscriptionManager::pubBookChanges(
ripple::LedgerInfo const& lgrInfo,
std::vector<Backend::TransactionAndMetadata> const& transactions)
{
// TODO: change to ngRPC after old RPC is removed
auto const json = RPC::computeBookChanges(lgrInfo, transactions);
auto const bookChangesMsg = std::make_shared<Message>(boost::json::serialize(json));
bookChangesSubscribers_.publish(bookChangesMsg);