Fix prep blocks thread settng and app name

This commit is contained in:
everoddandeven 2024-10-21 16:54:51 +02:00
parent c281283725
commit 0f760e21aa
2 changed files with 2 additions and 1 deletions

View file

@ -49,6 +49,7 @@ interface Stats {
//import * as bz2 from 'unbzip2-stream'; //import * as bz2 from 'unbzip2-stream';
const bz2 = require('unbzip2-stream'); const bz2 = require('unbzip2-stream');
app.setName('Monero Daemon');
const gotInstanceLock = app.requestSingleInstanceLock(); const gotInstanceLock = app.requestSingleInstanceLock();
if (!gotInstanceLock) { if (!gotInstanceLock) {

View file

@ -213,7 +213,7 @@ export class DaemonSettings {
if (this.keepFakeChain) options.push(`--keep-fakechain`); if (this.keepFakeChain) options.push(`--keep-fakechain`);
if (this.fixedDifficulty) options.push(`--fixed-difficulty`, `${this.fixedDifficulty}`); if (this.fixedDifficulty) options.push(`--fixed-difficulty`, `${this.fixedDifficulty}`);
if (this.enforceDnsCheckpoint) options.push(`--enforce-dns-checkpoint`); if (this.enforceDnsCheckpoint) options.push(`--enforce-dns-checkpoint`);
if (this.prepBlocksThreads) options.push(`--prep-block-threads`, `${this.prepBlocksThreads}`); if (this.prepBlocksThreads) options.push(`--prep-blocks-threads`, `${this.prepBlocksThreads}`);
if (!this.noSync && this.fastBlockSync) options.push(`--fast-block-sync`, `1`); if (!this.noSync && this.fastBlockSync) options.push(`--fast-block-sync`, `1`);
if (this.showTimeStats) options.push(`--show-time-stats`); if (this.showTimeStats) options.push(`--show-time-stats`);
if (!this.noSync && this.blockSyncSize) options.push(`--block-sync-size`, `${this.blockSyncSize}`); if (!this.noSync && this.blockSyncSize) options.push(`--block-sync-size`, `${this.blockSyncSize}`);