Leaving the issue at hand aside, I thought this was a good insight into how bitcoin core nodes find peers on the network (using a hardcoded list of seed nodes)
Also new to me was the list of requirements for running a dns seed node.
I thought this was a good insight into how bitcoin core nodes find peers on the network (using a hardcoded list of seed nodes)
Not quite correct: that's the first method they try. But if that fails, there is a backup list of IP addresses that are tried too. Also, for Tor only nodes, IIRC there's some fixed .onion addresses that are tried too. I2P probably has something similar.
If you run a node with -connect, the seed nodes and other mechanisms aren't used. Similarly, if you use -addnode, provided your node works and returns addresses, the seed nodes aren't that relevant either.
Assuming your ISP isn't themselves MITM attacking you, you only need a single "honest" peer for Bitcoin to properly connect to the P2P network. So the seed node mechanism has a lot of redundancy.
reply
BTW, the reason why DNS is used in the first place is because DNS is heavily cached at multiple levels. That makes it extremely difficult for the people running the DNS seeds to:
  1. Figure out who is requesting IP addresses.
  2. Serve different IP addresses to specific target clients.
This protects users by making it very difficult to use DNS seeds to attack people.
reply
wow thanks for the great insight Peter!
reply
Yes, there are hardcoded list of both .onion and .i2p peers too, updated from time to time. https://github.com/bitcoin/bitcoin/tree/master/contrib/seeds
Assuming your ISP isn't themselves MITM attacking you
Running onion AND i2p would help here even if ISP is trying to MITM attack you.
reply
This guy is so annoying
reply
They're developing a coinjoin protocol on nostr (yay?) but my God their Twitter is cancerous to look at. Always mad about something
reply
He's been working on it for years and last I looked it could be easily ddosed
reply
who ? the PR troll ?
reply
They all need to touch some grass
reply
I learned about this mechanism when I asked ChatGPT about it a few months ago.
It can be overridden manually by editing bitcoin.conf, which you have to do anyway to connect over Tor only.
Bitcoin needs more software plurality.
There should be an alternative node implementation, independent from Bitcoin Core.
There should be more decentralised solutions for things like DNS lists or node IP/onion seed lists.
reply
Spiral grantee Johannes Hofmann has also done good research work on this topic.
reply
deleted by author
reply
I didn't know it was like that. Thanks for sharing
reply
Sometimes you don’t think it be like that, but it do.
reply