skypool-nimiq-miner icon indicating copy to clipboard operation
skypool-nimiq-miner copied to clipboard

embedded config to node file

Open tonyxjoseph opened this issue 6 years ago • 6 comments

is it possible to embed the config file to the node.exe executable ?

tonyxjoseph avatar Oct 20 '18 09:10 tonyxjoseph

Yes, its possible. You could add config file into pkg building embeding in package.json .

Azard avatar Oct 22 '18 15:10 Azard

how to do it. any steps

tonyxjoseph avatar Oct 22 '18 15:10 tonyxjoseph

please help

tonyxjoseph avatar Oct 23 '18 04:10 tonyxjoseph

@Miner1305 https://github.com/skypool-org/skypool-nimiq-miner/blob/master/index.js#L48 The easiest way is to change require('./' + 'config.txt'); to require('./config.txt'); Depends your os, change L38 or L48 Then you can remove the config file.

xiaozzz avatar Oct 24 '18 08:10 xiaozzz

That worked. any way to rename nimiq_node.node under @nimiq/core/build/release/nimiq_node.node to node.node or something else.

tonyxjoseph avatar Oct 26 '18 11:10 tonyxjoseph

any way to rename nimiq_node.node under @nimiq/core/build/release/nimiq_node.node to node.node or something else.

tonyxjoseph avatar Nov 01 '18 09:11 tonyxjoseph