ElementsProject / rust-elements

Rust support for Elements transaction/block deserialization
Creative Commons Zero v1.0 Universal
52 stars 33 forks source link

discount: fix weight calculation #218

Closed delta1 closed 2 months ago

delta1 commented 2 months ago

output amount and nonce discount must be weighted by the witness scaling factor as they form part of the base transaction, not the witness data

see https://github.com/ElementsProject/elements/pull/1366

delta1 commented 1 month ago

link to #204 too