-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum Synchronizer.Status extends Enum<Synchronizer.Status>
Represents the status of this Synchronizer, which is useful for communicating to the user.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SYNCEDIndicates that this Synchronizer is fully up to date and ready for all wallet functions. When set, a UI element may want to turn green. In this state, the balance can be trusted.
SYNCINGIndicates that the Synchronizer is actively syncing new blocks. It goes through these stages internally: downloading new blocks, validating these blocks, then scanning them, deleting the temporary persisted block files, and enhancing transaction details at the end.
In the downloading stage, the Synchronizer is actively downloading new blocks from the server.
In the validating stage, the Synchronizer is actively validating new blocks that were downloaded from the server. Blocks need to be verified before they are scanned. This confirms that each block is chain-sequential, thereby detecting missing blocks and reorgs.
In the scanning stage, Synchronizer is actively decrypting new blocks that were downloaded from the server.
In the deleting stage are all temporary persisted block files removed from the persistence.
In the enhancing stage is the Synchronizer actively enhancing newly scanned blocks with additional transaction details, fetched from the server.
DISCONNECTEDIndicates that this Synchronizer is disconnected from its lightwalletd server. When set, a UI element may want to turn red.
STOPPEDIndicates that stop has been called on this Synchronizer and it will no longer be used.
-
Method Summary
Modifier and Type Method Description final StringgetName()final IntegergetOrdinal()-
-
Method Detail
-
getOrdinal
final Integer getOrdinal()
-
-
-
-