Package utils
Class WalletSyncPrinter
java.lang.Object
monero.wallet.model.MoneroWalletListener
utils.WalletSyncPrinter
- All Implemented Interfaces:
MoneroWalletListenerI
Print sync progress every X blocks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonSyncProgress(long height, long startHeight, long endHeight, double percentDone, String message) Invoked as the wallet is synchronized.Methods inherited from class monero.wallet.model.MoneroWalletListener
onBalancesChanged, onNewBlock, onOutputReceived, onOutputSpent
-
Constructor Details
-
WalletSyncPrinter
public WalletSyncPrinter() -
WalletSyncPrinter
public WalletSyncPrinter(double syncResolution)
-
-
Method Details
-
onSyncProgress
public void onSyncProgress(long height, long startHeight, long endHeight, double percentDone, String message) Description copied from interface:MoneroWalletListenerIInvoked as the wallet is synchronized.- Specified by:
onSyncProgressin interfaceMoneroWalletListenerI- Overrides:
onSyncProgressin classMoneroWalletListener- Parameters:
height- - height of the synced blockstartHeight- - starting height of the sync requestendHeight- - ending height of the sync requestpercentDone- - sync progress as a percentagemessage- is a human-readable description of the current progress
-