Interface GetDataEventListener

  • All Known Subinterfaces:

    public interface GetDataEventListener

    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 Detail

      • getData

        java.util.List<Message> getData​(Peer peer,
                                        GetDataMessage m)

        Called when a peer receives a getdata message, usually in response to an "inv" being broadcast. Return as many items as possible which appear in the GetDataMessage, or null if you're not interested in responding.

        Note that this will never be called if registered with any executor other than Threading.SAME_THREAD