node: use the same memory option
This commit is contained in:
parent
a35516d4e0
commit
87aaebc8e7
@ -49,7 +49,7 @@ class FullNode extends Node {
|
|||||||
logger: this.logger,
|
logger: this.logger,
|
||||||
prefix: this.config.prefix,
|
prefix: this.config.prefix,
|
||||||
cacheSize: this.config.mb('block-cache-size'),
|
cacheSize: this.config.mb('block-cache-size'),
|
||||||
memory: this.config.bool('memory')
|
memory: this.memory
|
||||||
});
|
});
|
||||||
|
|
||||||
// Chain needs access to blocks.
|
// Chain needs access to blocks.
|
||||||
@ -83,7 +83,7 @@ class FullNode extends Node {
|
|||||||
workers: this.workers,
|
workers: this.workers,
|
||||||
chain: this.chain,
|
chain: this.chain,
|
||||||
fees: this.fees,
|
fees: this.fees,
|
||||||
memory: this.config.bool('memory'),
|
memory: this.memory,
|
||||||
prefix: this.config.prefix,
|
prefix: this.config.prefix,
|
||||||
persistent: this.config.bool('persistent-mempool'),
|
persistent: this.config.bool('persistent-mempool'),
|
||||||
maxSize: this.config.mb('mempool-size'),
|
maxSize: this.config.mb('mempool-size'),
|
||||||
@ -119,7 +119,7 @@ class FullNode extends Node {
|
|||||||
host: this.config.str('host'),
|
host: this.config.str('host'),
|
||||||
port: this.config.uint('port'),
|
port: this.config.uint('port'),
|
||||||
listen: this.config.bool('listen'),
|
listen: this.config.bool('listen'),
|
||||||
memory: this.config.bool('memory')
|
memory: this.memory
|
||||||
});
|
});
|
||||||
|
|
||||||
// Miner needs access to the chain and mempool.
|
// Miner needs access to the chain and mempool.
|
||||||
@ -165,7 +165,7 @@ class FullNode extends Node {
|
|||||||
blocks: this.blocks,
|
blocks: this.blocks,
|
||||||
chain: this.chain,
|
chain: this.chain,
|
||||||
prune: this.config.bool('prune'),
|
prune: this.config.bool('prune'),
|
||||||
memory: this.config.bool('memory'),
|
memory: this.memory,
|
||||||
prefix: this.config.str('index-prefix', this.config.prefix)
|
prefix: this.config.str('index-prefix', this.config.prefix)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -177,7 +177,7 @@ class FullNode extends Node {
|
|||||||
blocks: this.blocks,
|
blocks: this.blocks,
|
||||||
chain: this.chain,
|
chain: this.chain,
|
||||||
prune: this.config.bool('prune'),
|
prune: this.config.bool('prune'),
|
||||||
memory: this.config.bool('memory'),
|
memory: this.memory,
|
||||||
prefix: this.config.str('index-prefix', this.config.prefix),
|
prefix: this.config.str('index-prefix', this.config.prefix),
|
||||||
maxTxs: this.config.uint('max-txs')
|
maxTxs: this.config.uint('max-txs')
|
||||||
});
|
});
|
||||||
|
|||||||
@ -46,7 +46,7 @@ class SPVNode extends Node {
|
|||||||
network: this.network,
|
network: this.network,
|
||||||
logger: this.logger,
|
logger: this.logger,
|
||||||
prefix: this.config.prefix,
|
prefix: this.config.prefix,
|
||||||
memory: this.config.bool('memory'),
|
memory: this.memory,
|
||||||
maxFiles: this.config.uint('max-files'),
|
maxFiles: this.config.uint('max-files'),
|
||||||
cacheSize: this.config.mb('cache-size'),
|
cacheSize: this.config.mb('cache-size'),
|
||||||
entryCache: this.config.uint('entry-cache'),
|
entryCache: this.config.uint('entry-cache'),
|
||||||
@ -70,7 +70,7 @@ class SPVNode extends Node {
|
|||||||
only: this.config.array('only'),
|
only: this.config.array('only'),
|
||||||
maxOutbound: this.config.uint('max-outbound'),
|
maxOutbound: this.config.uint('max-outbound'),
|
||||||
createSocket: this.config.func('create-socket'),
|
createSocket: this.config.func('create-socket'),
|
||||||
memory: this.config.bool('memory'),
|
memory: this.memory,
|
||||||
selfish: true,
|
selfish: true,
|
||||||
listen: false
|
listen: false
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user