Fix cut'n'pasta error in map variable

We are mapping outputs not inputs.
This commit is contained in:
Tobin C. Harding 2024-01-19 07:36:11 +11:00
parent 9eec1082ec
commit bd41c836ab
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
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 += 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
}