Interface ChainDownloadStartedEventListener

All Known Subinterfaces:
BlockchainDownloadEventListener, PeerDataEventListener
All Known Implementing Classes:
DownloadProgressTracker

public interface ChainDownloadStartedEventListener

Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can provide transactions to remote peers when they ask for them.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onChainDownloadStarted(Peer peer, int blocksLeft)
    Called when a download is started with the initial number of blocks to be downloaded.
  • Method Details

    • onChainDownloadStarted

      void onChainDownloadStarted(Peer peer, int blocksLeft)
      Called when a download is started with the initial number of blocks to be downloaded.
      Parameters:
      peer - the peer receiving the block
      blocksLeft - the number of blocks left to download