pool: rename ignoreDiscovery.
This commit is contained in:
parent
f0e7aa9d82
commit
9dbfaf3127
@ -40,7 +40,7 @@ compact: true
|
||||
bip151: true
|
||||
# proxy-server: localhost
|
||||
# preferred-seed: seed.bitcoin.sipa.be
|
||||
# ignore-discovery: false
|
||||
# no-discovery: false
|
||||
# port: 8333
|
||||
listen: true
|
||||
max-outbound: 8
|
||||
|
||||
@ -58,7 +58,7 @@ var VerifyResult = errors.VerifyResult;
|
||||
* transactions accepted to our mempool.
|
||||
* @param {Boolean?} options.witness - Request witness blocks and transactions.
|
||||
* Only deal with witness peers.
|
||||
* @param {Boolean} options.ignoreDiscovery - Automatically discover new
|
||||
* @param {Boolean} options.noDiscovery - Automatically discover new
|
||||
* peers.
|
||||
* @param {String[]} options.seeds
|
||||
* @param {Function?} options.createSocket - Custom function to create a socket.
|
||||
@ -1009,7 +1009,7 @@ Pool.prototype.handleVersion = function handleVersion(peer, packet) {
|
||||
Pool.prototype.handleAddr = function handleAddr(peer, addrs) {
|
||||
var i, addr;
|
||||
|
||||
if (this.options.ignoreDiscovery)
|
||||
if (this.options.noDiscovery)
|
||||
return;
|
||||
|
||||
for (i = 0; i < addrs.length; i++) {
|
||||
|
||||
@ -195,7 +195,7 @@ config.parseData = function parseData(data, prefix, dirname) {
|
||||
options.preferredSeed = str(data.preferredseed);
|
||||
options.maxOutbound = num(data.maxoutbound);
|
||||
options.maxInbound = num(data.maxinbound);
|
||||
options.ignoreDiscovery = bool(data.ignorediscovery);
|
||||
options.noDiscovery = bool(data.nodiscovery);
|
||||
options.port = num(data.port);
|
||||
options.listen = bool(data.listen);
|
||||
options.knownPeers = file(data.knownpeers, prefix, dirname, 'utf8');
|
||||
|
||||
@ -117,7 +117,7 @@ function FullNode(options) {
|
||||
maxInbound: this.options.maxInbound,
|
||||
proxyServer: this.options.proxyServer,
|
||||
preferredSeed: this.options.preferredSeed,
|
||||
ignoreDiscovery: this.options.ignoreDiscovery,
|
||||
noDiscovery: this.options.noDiscovery,
|
||||
port: this.options.port,
|
||||
listen: this.options.listen,
|
||||
spv: false
|
||||
|
||||
@ -71,7 +71,7 @@ function SPVNode(options) {
|
||||
knownPeers: this.options.knownPeers,
|
||||
identityKey: this.options.identityKey,
|
||||
maxOutbound: this.options.maxOutbound,
|
||||
ignoreDiscovery: this.options.ignoreDiscovery,
|
||||
noDiscovery: this.options.noDiscovery,
|
||||
headers: this.options.headers,
|
||||
selfish: true,
|
||||
listen: false,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user