Fix bug: api version change does not affect the subscribed session (#1404)

Fix #1133
This commit is contained in:
cyan317
2024-05-13 09:12:35 +01:00
committed by GitHub
parent a8c90a31d9
commit 3a6390caf5
10 changed files with 105 additions and 102 deletions

View File

@@ -224,10 +224,9 @@ public:
/**
* @brief Subscribe to the transactions feed.
* @param subscriber
* @param apiVersion The api version of feed to subscribe.
*/
void
subTransactions(SubscriberSharedPtr const& subscriber, std::uint32_t apiVersion);
subTransactions(SubscriberSharedPtr const& subscriber);
/**
* @brief Unsubscribe to the transactions feed.
@@ -240,10 +239,9 @@ public:
* @brief Subscribe to the transactions feed, only receive the feed when particular account is affected.
* @param account The account to watch.
* @param subscriber
* @param apiVersion The api version of feed to subscribe.
*/
void
subAccount(ripple::AccountID const& account, SubscriberSharedPtr const& subscriber, std::uint32_t apiVersion);
subAccount(ripple::AccountID const& account, SubscriberSharedPtr const& subscriber);
/**
* @brief Unsubscribe to the transactions feed for particular account.
@@ -257,10 +255,9 @@ public:
* @brief Subscribe to the transactions feed, only receive feed when particular order book is affected.
* @param book The book to watch.
* @param subscriber
* @param apiVersion The api version of feed to subscribe.
*/
void
subBook(ripple::Book const& book, SubscriberSharedPtr const& subscriber, std::uint32_t apiVersion);
subBook(ripple::Book const& book, SubscriberSharedPtr const& subscriber);
/**
* @brief Unsubscribe to the transactions feed for particular order book.