diff --git a/src/network/outbound.rs b/src/network/outbound.rs index 48b47eaf..d0aecd96 100644 --- a/src/network/outbound.rs +++ b/src/network/outbound.rs @@ -50,7 +50,7 @@ impl MessageGenerator { } pub(in crate::network) fn block(&mut self, hash: BlockHash) -> Vec { - let inv = Inventory::Block(hash); + let inv = Inventory::WitnessBlock(hash); let msg = NetworkMessage::GetData(vec![inv]); self.serialize(msg) } @@ -79,6 +79,35 @@ fn encrypt_plaintext(encryptor: &mut PacketWriter, plaintext: Vec) -> Vec, network: &Network) -> VersionMessage { let now = SystemTime::now() .duration_since(UNIX_EPOCH)