I got the error stating that handle_message missing positional argument writer but writer is supplied to the function. It seems that handle_message can't get self, that is p2p_protocol.
|
self.p2p_protocol = p2p_protocol |
I've changed this section to self.p2p_protocol = p2p_protocol(self) and it's working as intended. Is this normal or am I missing something?
I got the error stating that
handle_messagemissing positional argumentwriterbutwriteris supplied to the function. It seems thathandle_messagecan't getself, that is p2p_protocol.blockchain-book/chapters/chapter_7/funcoin/server.py
Line 17 in 8642a7b
I've changed this section to
self.p2p_protocol = p2p_protocol(self)and it's working as intended. Is this normal or am I missing something?