Change WitnessTransaction inv type to use txid

This commit is contained in:
Jake Rawsthorne 2020-04-14 14:11:44 +01:00
parent c3a7d1b27c
commit 81c061a68c
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ use hashes::sha256d;
use network::constants;
use consensus::encode::{self, Decodable, Encodable};
use hash_types::{BlockHash, Txid, Wtxid};
use hash_types::{BlockHash, Txid};
/// An inventory item.
#[derive(PartialEq, Eq, Clone, Debug, Copy, Hash)]
@ -36,7 +36,7 @@ pub enum Inventory {
/// Block
Block(BlockHash),
/// Witness Transaction
WitnessTransaction(Wtxid),
WitnessTransaction(Txid),
/// Witness Block
WitnessBlock(BlockHash),
}