Sometimes bip_select needs to tell clients to send a PieceMessage, but it wont know the actual payload. The clients will generally have to use something like bip_disk to get the payload from some fs to actually send the message.
We want bip_select to send a variant of PieceMessage without the data portion so clients dont get confused and think they can send that message without grabbing the data first. A wrapper type named something like BlockIdentifier would allow this, and we could use this type internally in RequestMessage, CancelMessage, as well as PieceMessage.
Sometimes
bip_select
needs to tell clients to send aPieceMessage
, but it wont know the actual payload. The clients will generally have to use something likebip_disk
to get the payload from some fs to actually send the message.We want
bip_select
to send a variant ofPieceMessage
without the data portion so clients dont get confused and think they can send that message without grabbing the data first. A wrapper type named something likeBlockIdentifier
would allow this, and we could use this type internally inRequestMessage
,CancelMessage
, as well asPieceMessage
.