Firstly, great to see the Bitcoin protocol and blockchain functionality implemented in Python!
In the file basenode.py near line 338 you have a statement:
peer.send_message(message.Address(addresses))
I'm running two instances of pycoind-node with a non-realworld coin definition - my objective is to have a minimal blockchain implementation running as a means of experimenting - in Python as opposed to C++ (code, recompile, run, debug, etc).
However, in my use case, the interpreter complains that message is undefined in this function. I assume that connection to an existing network node will receive a message and pass it to the command_get_address() function via **kwargs. However, before I code messaging in pycoind, I wonder if you have any comments about this function. Advice as to where in pycoind to implement a Message class and constructor may help.
Firstly, great to see the Bitcoin protocol and blockchain functionality implemented in Python!
In the file
basenode.pynear line 338 you have a statement:I'm running two instances of pycoind-node with a non-realworld coin definition - my objective is to have a minimal blockchain implementation running as a means of experimenting - in Python as opposed to C++ (code, recompile, run, debug, etc).
However, in my use case, the interpreter complains that
messageis undefined in this function. I assume that connection to an existing network node will receive a message and pass it to thecommand_get_address()function via **kwargs. However, before I code messaging in pycoind, I wonder if you have any comments about this function. Advice as to where in pycoind to implement a Message class and constructor may help.