f02b3a8472
The line of code `let mut have_witness = self.input.is_empty();` is puzzling if one does not know _why_ we serialize in BIP141 style when there are no inputs. Add a code comment to save devs spending time trying to work out _why_ this is correct. |
||
---|---|---|
.. | ||
block.rs | ||
constants.rs | ||
mod.rs | ||
opcodes.rs | ||
script.rs | ||
transaction.rs | ||
witness.rs |