jimmysong / programmingbitcoin

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

Chapter 5: Varint sidebar example #271

Open lux-hux opened 1 year ago

lux-hux commented 1 year ago

Programming Bitcoin (first edition) Chapter 5, pg 92:

The second dot point says 555 -> xfd2b02. However, the encode_varint function returns the correct value 0xfd02.

I believe this may only be an error in the print of the book and not in the online repository.