-
- All Implemented Interfaces:
-
cash.z.ecc.android.sdk.block.processor.CompactBlockProcessor.State.IConnected,cash.z.ecc.android.sdk.block.processor.CompactBlockProcessor.State.ISyncing
public class CompactBlockProcessor.State.Syncing extends CompactBlockProcessor.State implements CompactBlockProcessor.State.IConnected, CompactBlockProcessor.State.ISyncing
State for common syncing stage. It starts with downloading new blocks, then validating these blocks and scanning them at the end.
Downloading is when the wallet is actively downloading compact blocks because the latest block height available from the server is greater than what we have locally. We move out of this state once our local height matches the server.
Scanning is when the blocks that have been downloaded are actively being decrypted and validated to ensure that there are no gaps and that every block is chain-sequential to the previous block, which determines whether a reorg has happened on our watch.
Deleting is when the temporary block files being removed from the persistence.
Enhancing is when transaction details are being retrieved. This typically means the wallet has downloaded and scanned blocks and is now processing any transactions that were discovered. Once a transaction is discovered, followup network requests are needed in order to retrieve memos or outbound transaction information, like the recipient address. The existing information we have about transactions is enhanced by the new information.
-
-
Field Summary
Fields Modifier and Type Field Description public final static CompactBlockProcessor.State.SyncingINSTANCE
-