Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Commit

Permalink
feat(electron): upgrade node to V18.0RC3
Browse files Browse the repository at this point in the history
  • Loading branch information
devinus committed Feb 20, 2019
1 parent 67512b6 commit b03a4be
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 20 deletions.
31 changes: 24 additions & 7 deletions ember-electron/config.development.json
Expand Up @@ -7,15 +7,16 @@
"enable_control": "true", "enable_control": "true",
"frontier_request_limit": "16384", "frontier_request_limit": "16384",
"chain_request_limit": "16384", "chain_request_limit": "16384",
"max_json_depth": "20" "max_json_depth": "20",
"enable_sign_hash": "false"
}, },
"node": { "node": {
"version": "15", "version": "16",
"peering_port": "54000", "peering_port": "54000",
"bootstrap_fraction_numerator": "1", "bootstrap_fraction_numerator": "1",
"receive_minimum": "1", "receive_minimum": "1",
"logging": { "logging": {
"version": "5", "version": "6",
"ledger": "false", "ledger": "false",
"ledger_duplicate": "false", "ledger_duplicate": "false",
"vote": "false", "vote": "false",
Expand All @@ -28,18 +29,19 @@
"node_lifetime_tracing": "false", "node_lifetime_tracing": "false",
"insufficient_work": "true", "insufficient_work": "true",
"log_rpc": "true", "log_rpc": "true",
"log_ipc": "true",
"bulk_pull": "false", "bulk_pull": "false",
"work_generation_time": "true", "work_generation_time": "true",
"upnp_details": "false", "upnp_details": "false",
"timing": "false", "timing": "false",
"log_to_cerr": "false", "log_to_cerr": "false",
"max_size": "16777216", "max_size": "134217728",
"rotation_size": "4194304", "rotation_size": "4194304",
"flush": "true" "flush": "true"
}, },
"work_peers": "", "work_peers": "",
"preconfigured_peers": [ "preconfigured_peers": [
"rai-beta.raiblocks.net" "peering-beta.nano.org"
], ],
"preconfigured_representatives": [ "preconfigured_representatives": [
"xrb_3betaz86ypbygpqbookmzpnmd5jhh4efmd8arr9a3n4bdmj1zgnzad7xpmfp", "xrb_3betaz86ypbygpqbookmzpnmd5jhh4efmd8arr9a3n4bdmj1zgnzad7xpmfp",
Expand All @@ -54,14 +56,29 @@
"io_threads": "4", "io_threads": "4",
"network_threads": "4", "network_threads": "4",
"work_threads": "4", "work_threads": "4",
"enable_voting": "true", "signature_checker_threads": "3",
"enable_voting": "false",
"bootstrap_connections": "4", "bootstrap_connections": "4",
"bootstrap_connections_max": "16", "bootstrap_connections_max": "16",
"callback_address": "", "callback_address": "",
"callback_port": "0", "callback_port": "0",
"callback_target": "", "callback_target": "",
"lmdb_max_dbs": "128", "lmdb_max_dbs": "128",
"block_processor_batch_max_time": "5000" "block_processor_batch_max_time": "5000",
"allow_local_peers": "false",
"vote_minimum": "1000000000000000000000000000000000",
"ipc": {
"tcp": {
"enable": "false",
"port": "7077",
"io_timeout": "15"
},
"local": {
"enable": "false",
"path": "\/tmp\/nano",
"io_timeout": "15"
}
}
}, },
"opencl_enable": "false", "opencl_enable": "false",
"opencl": { "opencl": {
Expand Down
31 changes: 24 additions & 7 deletions ember-electron/config.production.json
Expand Up @@ -7,15 +7,16 @@
"enable_control": "true", "enable_control": "true",
"frontier_request_limit": "16384", "frontier_request_limit": "16384",
"chain_request_limit": "16384", "chain_request_limit": "16384",
"max_json_depth": "20" "max_json_depth": "20",
"enable_sign_hash": "false"
}, },
"node": { "node": {
"version": "15", "version": "16",
"peering_port": "7075", "peering_port": "7075",
"bootstrap_fraction_numerator": "1", "bootstrap_fraction_numerator": "1",
"receive_minimum": "1", "receive_minimum": "1",
"logging": { "logging": {
"version": "5", "version": "6",
"ledger": "false", "ledger": "false",
"ledger_duplicate": "false", "ledger_duplicate": "false",
"vote": "false", "vote": "false",
Expand All @@ -28,18 +29,19 @@
"node_lifetime_tracing": "false", "node_lifetime_tracing": "false",
"insufficient_work": "true", "insufficient_work": "true",
"log_rpc": "false", "log_rpc": "false",
"log_ipc": "false",
"bulk_pull": "false", "bulk_pull": "false",
"work_generation_time": "true", "work_generation_time": "true",
"upnp_details": "false", "upnp_details": "false",
"timing": "false", "timing": "false",
"log_to_cerr": "false", "log_to_cerr": "false",
"max_size": "16777216", "max_size": "134217728",
"rotation_size": "4194304", "rotation_size": "4194304",
"flush": "true" "flush": "true"
}, },
"work_peers": "", "work_peers": "",
"preconfigured_peers": [ "preconfigured_peers": [
"rai.raiblocks.net" "peering.nano.org"
], ],
"preconfigured_representatives": [ "preconfigured_representatives": [
"xrb_3arg3asgtigae3xckabaaewkx3bzsh7nwz7jkmjos79ihyaxwphhm6qgjps4", "xrb_3arg3asgtigae3xckabaaewkx3bzsh7nwz7jkmjos79ihyaxwphhm6qgjps4",
Expand All @@ -57,14 +59,29 @@
"io_threads": "4", "io_threads": "4",
"network_threads": "4", "network_threads": "4",
"work_threads": "4", "work_threads": "4",
"enable_voting": "true", "signature_checker_threads": "3",
"enable_voting": "false",
"bootstrap_connections": "4", "bootstrap_connections": "4",
"bootstrap_connections_max": "16", "bootstrap_connections_max": "16",
"callback_address": "", "callback_address": "",
"callback_port": "0", "callback_port": "0",
"callback_target": "", "callback_target": "",
"lmdb_max_dbs": "128", "lmdb_max_dbs": "128",
"block_processor_batch_max_time": "5000" "block_processor_batch_max_time": "5000",
"allow_local_peers": "false",
"vote_minimum": "1000000000000000000000000000000000",
"ipc": {
"tcp": {
"enable": "false",
"port": "7077",
"io_timeout": "15"
},
"local": {
"enable": "false",
"path": "\/tmp\/nano",
"io_timeout": "15"
}
}
}, },
"opencl_enable": "false", "opencl_enable": "false",
"opencl": { "opencl": {
Expand Down
27 changes: 22 additions & 5 deletions ember-electron/config.test.json
Expand Up @@ -7,15 +7,16 @@
"enable_control": "true", "enable_control": "true",
"frontier_request_limit": "16384", "frontier_request_limit": "16384",
"chain_request_limit": "16384", "chain_request_limit": "16384",
"max_json_depth": "20" "max_json_depth": "20",
"enable_sign_hash": "false"
}, },
"node": { "node": {
"version": "15", "version": "16",
"peering_port": "54000", "peering_port": "54000",
"bootstrap_fraction_numerator": "1", "bootstrap_fraction_numerator": "1",
"receive_minimum": "1", "receive_minimum": "1",
"logging": { "logging": {
"version": "5", "version": "6",
"ledger": "false", "ledger": "false",
"ledger_duplicate": "false", "ledger_duplicate": "false",
"vote": "false", "vote": "false",
Expand All @@ -28,12 +29,13 @@
"node_lifetime_tracing": "false", "node_lifetime_tracing": "false",
"insufficient_work": "true", "insufficient_work": "true",
"log_rpc": "true", "log_rpc": "true",
"log_ipc": "true",
"bulk_pull": "false", "bulk_pull": "false",
"work_generation_time": "true", "work_generation_time": "true",
"upnp_details": "false", "upnp_details": "false",
"timing": "false", "timing": "false",
"log_to_cerr": "false", "log_to_cerr": "false",
"max_size": "16777216", "max_size": "134217728",
"rotation_size": "4194304", "rotation_size": "4194304",
"flush": "true" "flush": "true"
}, },
Expand All @@ -48,14 +50,29 @@
"io_threads": "4", "io_threads": "4",
"network_threads": "4", "network_threads": "4",
"work_threads": "4", "work_threads": "4",
"signature_checker_threads": "3",
"enable_voting": "true", "enable_voting": "true",
"bootstrap_connections": "4", "bootstrap_connections": "4",
"bootstrap_connections_max": "16", "bootstrap_connections_max": "16",
"callback_address": "", "callback_address": "",
"callback_port": "0", "callback_port": "0",
"callback_target": "", "callback_target": "",
"lmdb_max_dbs": "128", "lmdb_max_dbs": "128",
"block_processor_batch_max_time": "5000" "block_processor_batch_max_time": "5000",
"allow_local_peers": "false",
"vote_minimum": "1000000000000000000000000000000000",
"ipc": {
"tcp": {
"enable": "false",
"port": "7077",
"io_timeout": "15"
},
"local": {
"enable": "false",
"path": "\/tmp\/nano",
"io_timeout": "15"
}
}
}, },
"opencl_enable": "false", "opencl_enable": "false",
"opencl": { "opencl": {
Expand Down
3 changes: 2 additions & 1 deletion ember-electron/daemon.js
Expand Up @@ -175,6 +175,7 @@ const startDaemon = async () => {
config.node.io_threads = Math.max(2, Math.ceil(cpuCount / 2)); config.node.io_threads = Math.max(2, Math.ceil(cpuCount / 2));
config.node.network_threads = config.node.io_threads; config.node.network_threads = config.node.io_threads;
config.node.work_threads = 2; config.node.work_threads = 2;
config.node.signature_checker_threads = config.node.io_threads - 1;
config.node.bootstrap_connections = Math.max(4, config.node.network_threads); config.node.bootstrap_connections = Math.max(4, config.node.network_threads);
config.node.bootstrap_connections_max = Math.min(64, config.node.bootstrap_connections * 4); config.node.bootstrap_connections_max = Math.min(64, config.node.bootstrap_connections * 4);


Expand All @@ -187,7 +188,7 @@ const startDaemon = async () => {
}, },
}); });


const cmd = path.join(global.resourcesPath, toExecutableName('rai_node')); const cmd = path.join(global.resourcesPath, toExecutableName('nano_node'));
log.info('Starting node:', cmd); log.info('Starting node:', cmd);


const child = crossSpawn(cmd, ['--daemon', '--data_path', dataPath], { const child = crossSpawn(cmd, ['--daemon', '--data_path', dataPath], {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit b03a4be

Please sign in to comment.