jimmysong / programmingbitcoin

Repository for the book
Other
1.75k stars 656 forks source link

Typo fix #216

Open amadeann opened 3 years ago

amadeann commented 3 years ago

len(bin(16)) is 7, not 6. So if we want to get to 4, we need to have:

len(bin(total))-3 and not: len(bin(total))-2