Actually set the wantlist
This commit is contained in:
@ -171,6 +171,9 @@ impl Into<Vec<u8>> for &Message<O> {
|
|||||||
payload.data = block.data().to_vec();
|
payload.data = block.data().to_vec();
|
||||||
proto.payload.push(payload);
|
proto.payload.push(payload);
|
||||||
}
|
}
|
||||||
|
if !wantlist.entries.is_empty() {
|
||||||
|
proto.wantlist = Some(wantlist);
|
||||||
|
}
|
||||||
let mut res = Vec::with_capacity(proto.encoded_len());
|
let mut res = Vec::with_capacity(proto.encoded_len());
|
||||||
proto
|
proto
|
||||||
.encode(&mut res)
|
.encode(&mut res)
|
||||||
|
Reference in New Issue
Block a user