Package utils

Class WalletSyncPrinter

All Implemented Interfaces:
MoneroWalletListenerI

public class WalletSyncPrinter extends MoneroWalletListener
Print sync progress every X blocks.
  • 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: MoneroWalletListenerI
      Invoked as the wallet is synchronized.
      Specified by:
      onSyncProgress in interface MoneroWalletListenerI
      Overrides:
      onSyncProgress in class MoneroWalletListener
      Parameters:
      height - - height of the synced block
      startHeight - - starting height of the sync request
      endHeight - - ending height of the sync request
      percentDone - - sync progress as a percentage
      message - is a human-readable description of the current progress