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:
    ACK bd41c836ab
  Kixunil:
    ACK bd41c836ab

Tree-SHA512: 2f2f788662a56077ac7b3623a4c4969d3248a2f374368b6a08e7ae4fd04baefee72c75e961cfb4edb973396627ac869ad7845217572eb21460af8aad58b0fa55
This commit is contained in:
Andrew Poelstra 2024-01-19 00:23:04 +00:00
commit aa1fc35b1b
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 1 additions and 1 deletions

View File

@ -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
} }