gottstech / gotts

A blockchain for non-collateralized stable-coins, follow MimbleWimble protocol but with explicit amount.
https://gotts.tech
Apache License 2.0
48 stars 4 forks source link

fix: the tx_weight calculation mistake for input length #33

Closed garyyu closed 4 years ago

garyyu commented 4 years ago

A mistake on the transaction weight calculation.

Root cause: the self.inputs.len() is no more the meaning of before, since now the inputs are:

pub inputs: Vec<InputEx>

which is InputEx vector other than Input vector.