diff --git a/src/blockdata/block.rs b/src/blockdata/block.rs index 3eff063d..56482f90 100644 --- a/src/blockdata/block.rs +++ b/src/blockdata/block.rs @@ -238,14 +238,14 @@ impl Block { /// Computes the merkle root of transactions hashed for witness. pub fn witness_root(&self) -> Option { - let hashes = self.txdata.iter().enumerate().map(|(i, t)| + let hashes = self.txdata.iter().enumerate().map(|(i, t)| { if i == 0 { // Replace the first hash with zeroes. Wtxid::default().as_hash() } else { t.wtxid().as_hash() } - ); + }); bitcoin_merkle_root(hashes).map(|h| h.into()) }