Package org.bitcoinj.core.listeners
Interface GetDataEventListener
- All Known Subinterfaces:
PeerDataEventListener
public interface GetDataEventListener
-
Method Summary
Modifier and TypeMethodDescriptiongetData(Peer peer, GetDataMessage m) Called when a peer receives a getdata message, usually in response to an "inv" being broadcast.
-
Method Details
-
getData
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
-