bitcoin-dev-project / bitcoin-dev-project/warnet

Prefill AddrMan with addresses before nodes connect

Open
#781 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
149
Forks
83
Avg merge
4d 8h
Merged PRs (30d)
2

Description

I’ve been trying to use warnet to simulate getaddr/addr messages. For this issue → https://github.com/bitcoin/bitcoin/pull/33498#pullrequestreview-3319680730

This is my understanding of the current flow.
Deploy tanks → AddrMan is empty.
Tanks connect via addnode → handshake happens.
getaddr is sent → addr response is empty (nothing to send).

Desired flow:
Deploy tanks (isolated, no connections).
Prefill each tank’s AddrMan with addresses.
Connect tanks manually.
getaddr/addr exchange happens with actual addresses (up to 1000).

currenlty i have a scenario that prefills addrman before connecting to peers

I could create a script that can be run as a helper to prefill AddrMan, but I’m wondering whether this is something that has been discussed before, and whether I’m missing context on how warnet handles AddrMan entries.

use cases
Test getaddr/addr messages
Simulate AddrMan collisions
Observe timing in address relay

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.