ledger-core
|
Public Member Functions | |
BlockchainExplorerAccountSynchronizer (const std::shared_ptr< WalletPool > &pool, const std::shared_ptr< BitcoinLikeBlockchainExplorer > &explorer) | |
void | updateCurrentBlock (std::shared_ptr< AbstractBlockchainExplorerAccountSynchronizer::SynchronizationBuddy > &buddy, const std::shared_ptr< api::ExecutionContext > &context) override |
void | updateTransactionsToDrop (soci::session &sql, std::shared_ptr< SynchronizationBuddy > &buddy, const std::string &accountUid) override |
void | reset (const std::shared_ptr< BitcoinLikeAccount > &account, const std::chrono::system_clock::time_point &toDate) override |
std::shared_ptr< ProgressNotifier< Unit > > | synchronize (const std::shared_ptr< BitcoinLikeAccount > &account) override |
bool | isSynchronizing () const override |
![]() | |
std::shared_ptr< ProgressNotifier< Unit > > | synchronizeAccount (const std::shared_ptr< Account > &account) |
![]() | |
DedicatedContext (const std::shared_ptr< api::ExecutionContext > &context) | |
template<typename T > | |
Future< T > | async (std::function< T()> f) |
template<typename T > | |
Future< T > | async (std::function< T()> f) const |
Future< Unit > | run (std::function< void()> f) |
std::shared_ptr< api::ExecutionContext > | getContext () const |
Additional Inherited Members | |
![]() | |
Future< Unit > | performSynchronization (const std::shared_ptr< Account > &account) |
Future< Unit > | synchronizeBatches (uint32_t currentBatchIndex, std::shared_ptr< SynchronizationBuddy > buddy) |
Future< bool > | synchronizeBatch (uint32_t currentBatchIndex, std::shared_ptr< SynchronizationBuddy > buddy, bool hadTransactions=false) |
virtual void | updateCurrentBlock (std::shared_ptr< SynchronizationBuddy > &buddy, const std::shared_ptr< api::ExecutionContext > &context)=0 |
![]() | |
static void | initializeSavedState (Option< BlockchainExplorerAccountSynchronizationSavedState > &savedState, int32_t halfBatchSize) |
![]() | |
std::shared_ptr< Explorer > | _explorer |
std::shared_ptr< ProgressNotifier< Unit > > | _notifier |
std::mutex | _lock |
std::shared_ptr< Account > | _currentAccount |
![]() | |
std::shared_ptr< api::ExecutionContext > | _executionContext |