mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-21 20:25:52 +00:00
first half of support for books stream
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
|
||||
#include <backend/BackendInterface.h>
|
||||
#include <memory>
|
||||
#include <backend/BackendInterface.h>
|
||||
|
||||
class WsBase;
|
||||
|
||||
@@ -37,12 +36,12 @@ class SubscriptionManager
|
||||
|
||||
finalEntry
|
||||
};
|
||||
|
||||
std::mutex m_;
|
||||
std::array<subscriptions, finalEntry> streamSubscribers_;
|
||||
std::unordered_map<ripple::AccountID, subscriptions> accountSubscribers_;
|
||||
std::unordered_map<ripple::AccountID, subscriptions>
|
||||
accountProposedSubscribers_;
|
||||
std::unordered_map<ripple::Book, subscriptions> bookSubscribers_;
|
||||
|
||||
public:
|
||||
static std::shared_ptr<SubscriptionManager>
|
||||
@@ -72,7 +71,7 @@ public:
|
||||
|
||||
void
|
||||
pubTransaction(
|
||||
Backend::TransactionAndMetadata const& blob,
|
||||
Backend::TransactionAndMetadata const& blobs,
|
||||
std::uint32_t seq);
|
||||
|
||||
void
|
||||
@@ -85,6 +84,12 @@ public:
|
||||
ripple::AccountID const& account,
|
||||
std::shared_ptr<WsBase>& session);
|
||||
|
||||
void
|
||||
subBook(ripple::Book const& book, std::shared_ptr<WsBase>& session);
|
||||
|
||||
void
|
||||
unsubBook(ripple::Book const& book, std::shared_ptr<WsBase>& session);
|
||||
|
||||
void
|
||||
forwardProposedTransaction(boost::json::object const& response);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user