bitcoin-dev-project / bitcoiner-intro-to-rust

The Bitcoiner's Introduction to Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CompactSize includes 0

sb1752 opened this issue · comments

Technically, the compactSize includes 0, but we start at 1 in lesson 10 to avoid 0 inputs.

Should make this more clear as it will create confusion later on in chapter 22. Perhaps can simply check if there are 0 inputs and then panic! early on and fix the compactSize function implementation.