Add missing ref keyword

This change ensures that the value is borrowed rather than moved.
This commit is contained in:
Jamil Lambert, PhD 2024-07-08 11:15:12 +01:00
parent 4507cd1fe7
commit 58a43b309e
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ impl Encodable for Inventory {
Inventory::Transaction(ref t) => encode_inv!(1, t),
Inventory::Block(ref b) => encode_inv!(2, b),
Inventory::CompactBlock(ref b) => encode_inv!(4, b),
Inventory::WTx(w) => encode_inv!(5, w),
Inventory::WTx(ref w) => encode_inv!(5, w),
Inventory::WitnessTransaction(ref t) => encode_inv!(0x40000001, t),
Inventory::WitnessBlock(ref b) => encode_inv!(0x40000002, b),
Inventory::Unknown { inv_type: t, hash: ref d } => encode_inv!(t, d),