node: use the same memory option

This commit is contained in:
Braydon Fuller 2019-05-17 12:08:08 -07:00
parent a35516d4e0
commit 87aaebc8e7
No known key found for this signature in database
GPG Key ID: F24F232D108B3AD4
2 changed files with 7 additions and 7 deletions

View File

@ -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')
});

View File

@ -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
});