programmingbitcoin icon indicating copy to clipboard operation
programmingbitcoin copied to clipboard

Chapter 6 Script.py raw_serialize()

Open SachinMeier opened this issue 5 years ago • 1 comments

In chapter 6, we code the Script.raw_serialize() method, and we cover every valid length of an element except 75. Should the first elif be Elif length >= 75 ? I read that 75 is an element, so it should belong here right? image

SachinMeier avatar Jan 05 '20 02:01 SachinMeier

The first elif is OK but the line if length < 75: should read if length <= 75: See the issue #222 and Bitcoin Wiki

salmonberry7 avatar Oct 28 '24 16:10 salmonberry7