From 87aaebc8e70258c328488e64969dffe8e3789270 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Fri, 17 May 2019 12:08:08 -0700 Subject: [PATCH] node: use the same memory option --- lib/node/fullnode.js | 10 +++++----- lib/node/spvnode.js | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/node/fullnode.js b/lib/node/fullnode.js index 1c0642b90..a55c50e32 100644 --- a/lib/node/fullnode.js +++ b/lib/node/fullnode.js @@ -49,7 +49,7 @@ class FullNode extends Node { logger: this.logger, prefix: this.config.prefix, cacheSize: this.config.mb('block-cache-size'), - memory: this.config.bool('memory') + memory: this.memory }); // Chain needs access to blocks. @@ -83,7 +83,7 @@ class FullNode extends Node { workers: this.workers, chain: this.chain, fees: this.fees, - memory: this.config.bool('memory'), + memory: this.memory, prefix: this.config.prefix, persistent: this.config.bool('persistent-mempool'), maxSize: this.config.mb('mempool-size'), @@ -119,7 +119,7 @@ class FullNode extends Node { host: this.config.str('host'), port: this.config.uint('port'), listen: this.config.bool('listen'), - memory: this.config.bool('memory') + memory: this.memory }); // Miner needs access to the chain and mempool. @@ -165,7 +165,7 @@ class FullNode extends Node { blocks: this.blocks, chain: this.chain, prune: this.config.bool('prune'), - memory: this.config.bool('memory'), + memory: this.memory, prefix: this.config.str('index-prefix', this.config.prefix) }); } @@ -177,7 +177,7 @@ class FullNode extends Node { blocks: this.blocks, chain: this.chain, prune: this.config.bool('prune'), - memory: this.config.bool('memory'), + memory: this.memory, prefix: this.config.str('index-prefix', this.config.prefix), maxTxs: this.config.uint('max-txs') }); diff --git a/lib/node/spvnode.js b/lib/node/spvnode.js index 6bc64bb86..bdcf81b2d 100644 --- a/lib/node/spvnode.js +++ b/lib/node/spvnode.js @@ -46,7 +46,7 @@ class SPVNode extends Node { network: this.network, logger: this.logger, prefix: this.config.prefix, - memory: this.config.bool('memory'), + memory: this.memory, maxFiles: this.config.uint('max-files'), cacheSize: this.config.mb('cache-size'), entryCache: this.config.uint('entry-cache'), @@ -70,7 +70,7 @@ class SPVNode extends Node { only: this.config.array('only'), maxOutbound: this.config.uint('max-outbound'), createSocket: this.config.func('create-socket'), - memory: this.config.bool('memory'), + memory: this.memory, selfish: true, listen: false });