Bitcoin Forum
April 26, 2018, 06:16:26 PM *
News: Latest stable version of Bitcoin Core: 0.16.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: If change hard-coded IP address in source,  (Read 26 times)
wsxdrfv
Jr. Member
*
Offline Offline

Activity: 112
Merit: 0


View Profile WWW
March 27, 2018, 05:07:37 AM
 #1

If there is an coin and running network at public,

If developer change hard-coded IP address in source, and make new client, but it does not conflict with existing node?

my BitcoinEssence (BTE) address : EbpxqVRFy2253rXobedjrHGTi2f1KHkxd4
1524766586
Hero Member
*
Offline Offline

Posts: 1524766586

View Profile Personal Message (Offline)

Ignore
1524766586
Reply with quote  #2

1524766586
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
starmyc
Member
**
Online Online

Activity: 98
Merit: 48

Software engineer


View Profile WWW
March 27, 2018, 05:36:40 AM
 #2

If there is an coin and running network at public,

If developer change hard-coded IP address in source, and make new client, but it does not conflict with existing node?

IPs in source code (of old bitcoin clients) & dns seeds are only a way to help discovering other nodes. They are not authority or dictate how the network will behave. Once another nodes are discovered by the client, they don't use this list anymore, as peer information will be stored in the peers.dat database.

Therefore, it one of the clients of the "new" client contacts a node of the "old" client in any way, and protocol doesn't differ, you'll have what you call "conflicts". That's why most altcoins change network ports from their original implementation.

Please note I believe you can't define anymore any node IP in bitcoin's source code, only dns seed which returns IP addresses of nodes.

Software engineer for hire: API, Fullstack dev, Altcoin help & support, ETH contracts, sysadmin... PM me if you need help!
Tip me: 3An9ddmuGr7DsvdUUFJshCidq97E3Re8Eg
wsxdrfv
Jr. Member
*
Offline Offline

Activity: 112
Merit: 0


View Profile WWW
March 28, 2018, 07:40:43 AM
 #3

If there is an coin and running network at public,

If developer change hard-coded IP address in source, and make new client, but it does not conflict with existing node?

IPs in source code (of old bitcoin clients) & dns seeds are only a way to help discovering other nodes. They are not authority or dictate how the network will behave. Once another nodes are discovered by the client, they don't use this list anymore, as peer information will be stored in the peers.dat database.

Therefore, it one of the clients of the "new" client contacts a node of the "old" client in any way, and protocol doesn't differ, you'll have what you call "conflicts". That's why most altcoins change network ports from their original implementation.

Please note I believe you can't define anymore any node IP in bitcoin's source code, only dns seed which returns IP addresses of nodes.
I am working at altcoin's old version source, and want to change  net.cpp 's 1175 line, strMainNetDNSSeed[] 's IP address.

strMainNetDNSSeed[][2] = { {"asdf.com", "13.xxx.xxx.33"}, {"qwer.com", "23.xxx.xxx.33"} } to another.

so in this part, "asdf.com" doesn't matter and only IP address is matter, right?

my BitcoinEssence (BTE) address : EbpxqVRFy2253rXobedjrHGTi2f1KHkxd4
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!