Skip to content

Messaging between pycoind nodes only #11

@venzen

Description

@venzen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions