mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 14:54:15 +00:00
Fix DnsDiscovery javadocs and make a couple of fields final.
This commit is contained in:
parent
c278867186
commit
e4e2e60627
@ -29,9 +29,6 @@ import java.util.concurrent.*;
|
||||
/**
|
||||
* <p>Supports peer discovery through DNS.</p>
|
||||
*
|
||||
* <p>This class does not support the testnet as currently there are no DNS servers providing testnet hosts.
|
||||
* If this class is being used for testnet you must specify the hostnames to use.</p>
|
||||
*
|
||||
* <p>Failure to resolve individual host names will not cause an Exception to be thrown.
|
||||
* However, if all hosts passed fail to resolve a PeerDiscoveryException will be thrown during getPeers().
|
||||
* </p>
|
||||
@ -43,8 +40,8 @@ import java.util.concurrent.*;
|
||||
public class DnsDiscovery implements PeerDiscovery {
|
||||
private static final Logger log = LoggerFactory.getLogger(DnsDiscovery.class);
|
||||
|
||||
private String[] hostNames;
|
||||
private NetworkParameters netParams;
|
||||
private final String[] hostNames;
|
||||
private final NetworkParameters netParams;
|
||||
|
||||
/**
|
||||
* Supports finding peers through DNS A records. Community run DNS entry points will be used.
|
||||
|
Loading…
x
Reference in New Issue
Block a user