config: cleanup.

This commit is contained in:
Christopher Jeffrey 2017-01-23 13:44:11 -08:00
parent c44fc3bcef
commit 1e9ebcc0d1
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -179,9 +179,6 @@ config.parseData = function parseData(data, prefix, dirname) {
options.indexTX = bool(data.indextx);
options.indexAddress = bool(data.indexaddress);
if (data.usecheckpoints != null)
options.checkpoints = bool(data.usecheckpoints);
// Mempool
options.limitFree = bool(data.limitfree);
options.limitFreeRelay = bool(data.limitfreerelay);
@ -191,7 +188,6 @@ config.parseData = function parseData(data, prefix, dirname) {
// Pool
options.selfish = bool(data.selfish);
options.headers = bool(data.headers);
options.compact = bool(data.compact);
options.bip151 = bool(data.bip151);
options.bip150 = bool(data.bip150);
@ -235,14 +231,6 @@ config.parseData = function parseData(data, prefix, dirname) {
if (options.authPeers != null)
options.authPeers = config.parseAuth(options.authPeers);
// Alias
if (options.fast) {
options.headers = true;
options.checkpoints = true;
options.cacheSize = 200 << 20;
options.coinCache = 65 << 20;
}
return options;
};