Clio develop
The XRP Ledger API server.
|
Feed that publishes book changes. This feed will be published every ledger, even if there are no changes. Example : {'type': 'bookChanges', 'ledger_index': 2647936, 'ledger_hash': '0A5010342D8AAFABDCA58A68F6F588E1C6E58C21B63ED6CA8DB2478F58F3ECD5', 'ledger_time': 756395682, 'changes': []}. More...
#include <BookChangesFeed.hpp>
Public Member Functions | |
BookChangesFeed (util::async::AnyExecutionContext &executionCtx) | |
void | pub (ripple::LedgerHeader const &lgrInfo, std::vector< data::TransactionAndMetadata > const &transactions) |
Publishes the book changes. | |
![]() | |
SingleFeedBase (util::async::AnyExecutionContext &executionCtx, std::string const &name) | |
Construct a new Single Feed Base object. | |
void | sub (SubscriberSharedPtr const &subscriber) |
Subscribe the feed. | |
void | unsub (SubscriberSharedPtr const &subscriber) |
Unsubscribe the feed. | |
void | pub (std::string msg) |
Publishes the feed in strand. | |
std::uint64_t | count () const |
Get the count of subscribers. | |
Feed that publishes book changes. This feed will be published every ledger, even if there are no changes. Example : {'type': 'bookChanges', 'ledger_index': 2647936, 'ledger_hash': '0A5010342D8AAFABDCA58A68F6F588E1C6E58C21B63ED6CA8DB2478F58F3ECD5', 'ledger_time': 756395682, 'changes': []}.
|
inline |
Publishes the book changes.
lgrInfo | The ledger header. |
transactions | The transactions that were included in the ledger. |