I see that bitcoin-cli can do getpeerinfo. However, it typically returns around 30 different IPs. Even if I ask for only outbound ones, I get around 16 addresses.

$ bitcoin-cli getpeerinfo | grep "inbound\": false" | wc -l

How do I narrow down to those 8 that will be used to propagate the next block my node gets to propagate?

1 Answer 1


Bitcoin Core nodes propagate blocks and transactions to all their peers, not just outbound ones.

And if you have 16 peers that getpeerinfo reports "inbound": false for, then all 16 are outbound connections. Presumably you're using addnode functionality, or using modified source code, as Bitcoin Core itself will not make more than 10 automatic outbound connections, but for manual connections (addnode) there is a separate limit.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.