ledger-core
Classes | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
ledger::core::AbstractBlockchainExplorerAccountSynchronizer< Account, AddressType, Keychain, Explorer > Class Template Referenceabstract
+ Inheritance diagram for ledger::core::AbstractBlockchainExplorerAccountSynchronizer< Account, AddressType, Keychain, Explorer >:

Classes

struct  SynchronizationBuddy
 

Public Member Functions

std::shared_ptr< ProgressNotifier< Unit > > synchronizeAccount (const std::shared_ptr< Account > &account)
 

Protected Member Functions

Future< UnitperformSynchronization (const std::shared_ptr< Account > &account)
 
Future< UnitsynchronizeBatches (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
 
virtual void updateTransactionsToDrop (soci::session &sql, std::shared_ptr< SynchronizationBuddy > &buddy, const std::string &accountUid)=0
 

Static Protected Member Functions

static void initializeSavedState (Option< BlockchainExplorerAccountSynchronizationSavedState > &savedState, int32_t halfBatchSize)
 

Protected Attributes

std::shared_ptr< Explorer > _explorer
 
std::shared_ptr< ProgressNotifier< Unit > > _notifier
 
std::mutex _lock
 
std::shared_ptr< Account > _currentAccount
 

The documentation for this class was generated from the following file: