0

I came across this resource that can be potentially used to send messages to nodes.

How would I go about sending addr messages to nodes? Is there a built in utility that I could use(bitcoin-cli) or do I have to resort writing a script?

4
  • 1
    Not sure I understand the question. If you run a full node (e.g. Bitcoin Core) you will send addr messages to nodes by default and help them find other peers (part of the P2P protocol). What exactly do you want to do beyond this? You want to send them specific addr messages at the time of your choosing or you want to experiment with your own script? Aug 29 at 12:12
  • I am trying to experiment with my own script to actually see how the buckets are populated with and without the use of an asmap. Aug 29 at 12:50
  • 1
    Ah ok, cool. Afaik there isn't any built in utility. You'll have to write a script to send additional addr messages that Core wouldn't send. Aug 29 at 12:58
  • 2
    @VinayShetty This could be helpful: github.com/petertodd/python-bitcoinlib/blob/master/examples/…. I tried using it and see an addr message in wireshark although script looks outdated. Aug 30 at 2:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy