mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Implement tx stream with history
This commit is contained in:
@@ -60,6 +60,9 @@ InfoSub::~InfoSub()
|
||||
|
||||
if (!normalSubscriptions_.empty())
|
||||
m_source.unsubAccountInternal(mSeq, normalSubscriptions_, false);
|
||||
|
||||
for (auto const& account : accountHistorySubscriptions_)
|
||||
m_source.unsubAccountHistoryInternal(mSeq, account, false);
|
||||
}
|
||||
|
||||
Resource::Consumer&
|
||||
@@ -101,6 +104,20 @@ InfoSub::deleteSubAccountInfo(AccountID const& account, bool rt)
|
||||
normalSubscriptions_.erase(account);
|
||||
}
|
||||
|
||||
bool
|
||||
InfoSub::insertSubAccountHistory(AccountID const& account)
|
||||
{
|
||||
std::lock_guard sl(mLock);
|
||||
return accountHistorySubscriptions_.insert(account).second;
|
||||
}
|
||||
|
||||
void
|
||||
InfoSub::deleteSubAccountHistory(AccountID const& account)
|
||||
{
|
||||
std::lock_guard sl(mLock);
|
||||
accountHistorySubscriptions_.erase(account);
|
||||
}
|
||||
|
||||
void
|
||||
InfoSub::clearPathRequest()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user