-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Labels
Description
Background
btcd seems to not bother connecting to all the peers configured with addpeer=, and also not connect to more than 2-3 peers.
Your environment
- version of
btcd: 9ff0780 - which operating system: EndeavourOS
config:
[Application Options]
prune=1536
addpeer=2a01:4f8:262:4bc4::2
addpeer=2603:3003:4eac:100:4e5f:e7a6:2059:91d8
addpeer=2600:1700:8b81:9810::48
addpeer=213.193.83.253
addpeer=208.65.166.25
addpeer=2607:5300:203:5b84::1
nolisten=1
addcheckpoint=901901:00000000000000000000274ee89ba9625a079859cbcd4b57a11999e24456ccf8
v2transport=1
rpcuser=uwuser
rpcpass=pawss
notls=1
limitfreerelay=0
maxorphantx=1000
sigcachemaxsize=100000
blockmaxweight=3996000
blockprioritysize=50000
logs:
2025-11-06 00:00:11.828 [INF] BTCD: Version 0.25.0-beta
2025-11-06 00:00:11.829 [INF] BTCD: Loading block database from '/home/____________/.btcd/data/mainnet/blocks_ffldb'
2025-11-06 00:00:12.000 [INF] BTCD: Block database loaded
2025-11-06 00:00:12.009 [INF] INDX: Committed filter index is enabled
2025-11-06 00:00:12.009 [INF] BTCD: Prune set to 1536 MiB
2025-11-06 00:00:12.009 [INF] CHAN: Pre-alloacting for 251 MiB
2025-11-06 00:00:12.045 [INF] CHAN: Loading block index...
2025-11-06 00:00:16.667 [INF] CHAN: Chain state (height 922508, hash 00000000000000000000398224251b1ad28b08f4000ecdf148758c4ef7ee937f, totaltx 1267144083, work 75090201843685082224700644002)
2025-11-06 00:00:16.769 [INF] RPCS: RPC server listening on [::1]:8334
2025-11-06 00:00:16.769 [INF] RPCS: RPC server listening on 127.0.0.1:8334
2025-11-06 00:00:16.815 [INF] AMGR: Loaded 10798 addresses from file '/home/____________/.btcd/data/mainnet/peers.json'
2025-11-06 00:00:16.825 [INF] CMGR: 21 addresses found from DNS seed seed.bitcoin.wiz.biz
2025-11-06 00:00:16.852 [INF] CMGR: 2 addresses found from DNS seed seed.bitcoin.sipa.be
2025-11-06 00:00:16.854 [INF] CMGR: 2 addresses found from DNS seed seed.bitnodes.io
2025-11-06 00:00:16.855 [INF] CMGR: 36 addresses found from DNS seed seed.bitcoin.sprovoost.nl
2025-11-06 00:00:16.877 [INF] CMGR: 31 addresses found from DNS seed dnsseed.bluematt.me
2025-11-06 00:00:16.878 [INF] CMGR: 37 addresses found from DNS seed seed.btc.petertodd.net
2025-11-06 00:00:16.879 [INF] CMGR: 37 addresses found from DNS seed seed.bitcoin.jonasschnelli.ch
2025-11-06 00:00:16.879 [INF] CMGR: 36 addresses found from DNS seed dnsseed.bitcoin.dashjr.org
2025-11-06 00:00:16.980 [INF] SYNC: New valid peer [2607:5300:203:5b84::1]:8333 (outbound) (/Satoshi:29.0.0/)
2025-11-06 00:00:16.981 [INF] SYNC: Caught up to block 00000000000000000000398224251b1ad28b08f4000ecdf148758c4ef7ee937f(922508)
2025-11-06 00:00:17.081 [ERR] V2TR: Receive failed after reading 0 bytes (target 64): read tcp [2603:6011:7508:428e:cd52:a258:c26e:76a9]:40062->[2a01:4f8:262:4bc4::2]:8333: read: connection reset by peer
2025-11-06 00:00:17.081 [INF] PEER: Outbound v2 connection attempt to [2a01:4f8:262:4bc4::2]:8333 failed, willdowngrade to v1 (peer does not support v2)
2025-11-06 00:00:17.081 [INF] SRVR: Peer [2a01:4f8:262:4bc4::2]:8333 indicated v2->v1 downgrade. Marking for next attempt as v1.
2025-11-06 00:00:17.175 [ERR] V2TR: Receive failed after reading 0 bytes (target 64): EOF
2025-11-06 00:00:17.175 [INF] PEER: Outbound v2 connection attempt to 213.193.83.253:8333 failed, will downgrade to v1 (peer does not support v2)
2025-11-06 00:00:17.175 [INF] SRVR: Peer 213.193.83.253:8333 indicated v2->v1 downgrade. Marking for next attempt as v1.
2025-11-06 00:00:22.211 [INF] SRVR: Forcing V1 connection to [2a01:4f8:262:4bc4::2]:8333 as requested by P2P downgrader.
2025-11-06 00:00:22.346 [INF] SYNC: New valid peer [2a01:4f8:262:4bc4::2]:8333 (outbound) (/btcwire:0.5.0/btcd:0.24.2/)
2025-11-06 00:00:22.346 [INF] SYNC: Caught up to block 00000000000000000000398224251b1ad28b08f4000ecdf148758c4ef7ee937f(922508)
2025-11-06 00:00:22.346 [INF] SRVR: Forcing V1 connection to 213.193.83.253:8333 as requested by P2P downgrader.
2025-11-06 00:00:22.519 [INF] SYNC: New valid peer 213.193.83.253:8333 (outbound) (/btcwire:0.5.0/btcd:0.24.2/)
2025-11-06 00:00:22.519 [INF] SYNC: Caught up to block 00000000000000000000398224251b1ad28b08f4000ecdf148758c4ef7ee937f(922508)
Steps to reproduce
- configure a bunch of
addpeer=with nodes from bitnodes.io - start btcd
- run
btcctl getinfo connectionswill be3
Expected behaviour
I expected behaviour like bitcoind, where all the configured nodes were connected to and more.