Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: The One on August 04, 2017, 06:02:27 PM



Title: Is there a way of selecting peers by software version?
Post by: The One on August 04, 2017, 06:02:27 PM
I have two chains in two directories, Bitcoin Core and Bitcoin Cash.

I want Bitcoin Core to connect to those using Core software and Bitcoin Cash to connect to those using Cash software.

How do i do that? Using ban/disconnect is so time consuming.


Title: Re: Is there a way of selecting peers by software version?
Post by: achow101 on August 04, 2017, 07:06:19 PM
You can't. You could set up a script which checks the list of peers that you are connected to and then bans the ones that you don't want to connect to.


Title: Re: Is there a way of selecting peers by software version?
Post by: The One on August 04, 2017, 08:55:12 PM
Thank you. Is this worth developers' time to fix in the future?


Title: Re: Is there a way of selecting peers by software version?
Post by: achow101 on August 07, 2017, 06:50:54 PM
Thank you. Is this worth developers' time to fix in the future?
There is currently an open PR which will have Core disconnect any Bitcoin Cash or Segwit2x peer as those are or will become altcoins in the future.