public interface GetDataEventListener
Modifier and Type | Method and 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.
|
@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