Bitcoin Forum
November 03, 2024, 07:07:51 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Peers instead of DNSSeed  (Read 1603 times)
Apocalipsis (OP)
Full Member
***
Offline Offline

Activity: 147
Merit: 100


View Profile
March 03, 2014, 08:55:10 AM
 #1

Hi)
I want to know,how can I use a Ip of node,but not just DNSSeed link.
According to this thread
https://bitcointalk.org/index.php?topic=290308.0
,I have to change parameters from this
Code:
vPeerGroup.addPeerDiscovery(new SeedPeers(params));

to this
Code:
vPeerGroup.addPeerDiscovery(new DnsDiscovery(params));
It's ok,but I can't find in source code,where I should write IP addresses of nodes(ex.54.xxx.xxx.33:55884,or without ,just 54.xxx.xxx.33)
And I want to repeat,I want to use Nodes,not DNSSeeders.
Thank you to all in advance!
Mike Hearn
Moderator
Legendary
*
Offline Offline

Activity: 1526
Merit: 1134


View Profile
March 03, 2014, 11:18:09 PM
 #2

I think you want:

PeerGroup.addAddress(InetAddress)
Apocalipsis (OP)
Full Member
***
Offline Offline

Activity: 147
Merit: 100


View Profile
March 04, 2014, 09:44:14 AM
 #3


So,if I put it in the source code,I can to write "nodes ip" into the source.(ip that I write in /datadir/bitcoin/bitcoin.conf)
?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!