zcash-android-wallet-sdk/docs/-sdk-synchronizer/-init-.md

1.2 KiB

zcash-android-wallet-sdk / cash.z.wallet.sdk.data / SdkSynchronizer / <init>

<init>

SdkSynchronizer(downloader: CompactBlockStream, processor: CompactBlockProcessor, repository: TransactionRepository, activeTransactionManager: ActiveTransactionManager, wallet: Wallet, batchSize: Int= 1000, blockPollFrequency:Long = CompactBlockStream.DEFAULT_POLL_INTERVAL)

The glue. Downloads compact blocks to the database and then scans them for transactions. In order to serve that purpose, this class glues together a variety of key components. Each component contributes to the team effort of providing a simple source of truth to interact with.

Another way of thinking about this class is the reference that demonstrates how all the pieces can be tied together.