Package org.bitcoinj.core.listeners
Interface GetDataEventListener
-
- All Known Subinterfaces:
PeerDataEventListener
public interface GetDataEventListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
getData
@Nullable 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
-
-