Merge rust-bitcoin/rust-bitcoin#2359: Fix cut'n'pasta error in map variable
bd41c836ab
Fix cut'n'pasta error in map variable (Tobin C. Harding) Pull request description: We are mapping outputs not inputs. ACKs for top commit: apoelstra: ACKbd41c836ab
Kixunil: ACKbd41c836ab
Tree-SHA512: 2f2f788662a56077ac7b3623a4c4969d3248a2f374368b6a08e7ae4fd04baefee72c75e961cfb4edb973396627ac869ad7845217572eb21460af8aad58b0fa55
This commit is contained in:
commit
aa1fc35b1b
|
@ -761,7 +761,7 @@ impl Transaction {
|
||||||
size += self.input.iter().map(|input| input.base_size()).sum::<usize>();
|
size += self.input.iter().map(|input| input.base_size()).sum::<usize>();
|
||||||
|
|
||||||
size += VarInt::from(self.output.len()).size();
|
size += VarInt::from(self.output.len()).size();
|
||||||
size += self.output.iter().map(|input| input.size()).sum::<usize>();
|
size += self.output.iter().map(|output| output.size()).sum::<usize>();
|
||||||
|
|
||||||
size + absolute::LockTime::SIZE
|
size + absolute::LockTime::SIZE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue