rust-bitcoin-unsafe-fast/src/blockdata
Tobin Harding f02b3a8472 Add code comment for emtpy input
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.
2022-03-10 07:14:06 +11:00
..
block.rs Put && operator at front of line 2022-01-25 10:21:06 +11:00
constants.rs Add subsidy halving interval constant 2022-01-20 08:52:46 -08:00
mod.rs Introduce Witness struct mainly to improve ser/de performance while keeping most usability. 2021-12-28 09:56:38 +01:00
opcodes.rs Clean up module level rustdocs 2021-11-06 10:59:53 +11:00
script.rs Simplify read_scriptbool 2022-01-26 16:52:41 +11:00
transaction.rs Add code comment for emtpy input 2022-03-10 07:14:06 +11:00
witness.rs Add Witness::new() 2022-01-11 07:37:20 +05:30