ledger-core
Public Member Functions | List of all members
ledger::core::EthereumLikeBlockchainExplorerAccountSynchronizer Class Reference
+ Inheritance diagram for ledger::core::EthereumLikeBlockchainExplorerAccountSynchronizer:
+ Collaboration diagram for ledger::core::EthereumLikeBlockchainExplorerAccountSynchronizer:

Public Member Functions

 EthereumLikeBlockchainExplorerAccountSynchronizer (const std::shared_ptr< WalletPool > &pool, const std::shared_ptr< EthereumLikeBlockchainExplorer > &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
 
std::shared_ptr< ProgressNotifier< Unit > > synchronize (const std::shared_ptr< EthereumLikeAccount > &account) override
 
void reset (const std::shared_ptr< EthereumLikeAccount > &account, const std::chrono::system_clock::time_point &toDate) override
 
bool isSynchronizing () const override
 
- Public Member Functions inherited from ledger::core::AbstractBlockchainExplorerAccountSynchronizer< Account, AddressType, Keychain, Explorer >
std::shared_ptr< ProgressNotifier< Unit > > synchronizeAccount (const std::shared_ptr< Account > &account)
 
- Public Member Functions inherited from ledger::core::DedicatedContext
 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< Unitrun (std::function< void()> f)
 
std::shared_ptr< api::ExecutionContextgetContext () const
 

Additional Inherited Members

- Protected Member Functions inherited from ledger::core::AbstractBlockchainExplorerAccountSynchronizer< Account, AddressType, Keychain, Explorer >
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
 
- Static Protected Member Functions inherited from ledger::core::AbstractBlockchainExplorerAccountSynchronizer< Account, AddressType, Keychain, Explorer >
static void initializeSavedState (Option< BlockchainExplorerAccountSynchronizationSavedState > &savedState, int32_t halfBatchSize)
 
- Protected Attributes inherited from ledger::core::AbstractBlockchainExplorerAccountSynchronizer< Account, AddressType, Keychain, Explorer >
std::shared_ptr< Explorer > _explorer
 
std::shared_ptr< ProgressNotifier< Unit > > _notifier
 
std::mutex _lock
 
std::shared_ptr< Account > _currentAccount
 
- Protected Attributes inherited from ledger::core::DedicatedContext
std::shared_ptr< api::ExecutionContext_executionContext
 

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