Skip to content

Commit

Permalink
node: use the same memory option
Browse files Browse the repository at this point in the history
  • Loading branch information
braydonf committed May 31, 2019
1 parent a35516d commit 87aaebc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions lib/node/fullnode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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'),
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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)
});
}
Expand All @@ -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')
});
Expand Down
4 changes: 2 additions & 2 deletions lib/node/spvnode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -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
});
Expand Down

0 comments on commit 87aaebc

Please sign in to comment.