Fix handshake code example, updating answer and comments.
Address issue #143:
- fix boolean condition in example code
- remove extra verack send
- update answer accordingly
- update
handshakemethod comments
Hi. I still receive an error, because there is no 'parse' for 'VersionMessage'. The error happens whenever I try the lines in pg. 183 and the solution to the 'handshake' exercise. The error happens after I updated both pieces of code, according to the fix explained here.
This is the error:
AttributeError: type object 'VersionMessage' has no attribute 'parse'
The solution, of course, is to implement the 'parse' method for 'VersionMessage'. Strangely, the method does not figure in the source code or in the book.
I am writing that parse method right now and things seem to work finally.
Hi. I still receive an error, because there is no 'parse' for 'VersionMessage'. The error happens whenever I try the lines in pg. 183 and the solution to the 'handshake' exercise. The error happens after I updated both pieces of code, according to the fix explained here.
Here is an example of the parse method for VersionMessage: https://github.com/jimmysong/programmingbitcoin/issues/143#issuecomment-954243762