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 V17.0 (Boulton)
Browse files Browse the repository at this point in the history
  • Loading branch information
devinus committed Dec 21, 2018
1 parent 50fc9e2 commit e521b7d
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 11 deletions.
9 changes: 6 additions & 3 deletions ember-electron/config.development.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"max_json_depth": "20"
},
"node": {
"version": "14",
"version": "15",
"peering_port": "54000",
"bootstrap_fraction_numerator": "1",
"receive_minimum": "1",
"logging": {
"version": "4",
"version": "5",
"ledger": "false",
"ledger_duplicate": "false",
"vote": "false",
Expand All @@ -30,6 +30,8 @@
"log_rpc": "true",
"bulk_pull": "false",
"work_generation_time": "true",
"upnp_details": "false",
"timing": "false",
"log_to_cerr": "false",
"max_size": "16777216",
"rotation_size": "4194304",
Expand All @@ -50,6 +52,7 @@
"online_weight_quorum": "50",
"password_fanout": "1024",
"io_threads": "4",
"network_threads": "4",
"work_threads": "4",
"enable_voting": "true",
"bootstrap_connections": "4",
Expand All @@ -58,7 +61,7 @@
"callback_port": "0",
"callback_target": "",
"lmdb_max_dbs": "128",
"generate_hash_votes_at": "0"
"block_processor_batch_max_time": "5000"
},
"opencl_enable": "false",
"opencl": {
Expand Down
9 changes: 6 additions & 3 deletions ember-electron/config.production.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"max_json_depth": "20"
},
"node": {
"version": "14",
"version": "15",
"peering_port": "7075",
"bootstrap_fraction_numerator": "1",
"receive_minimum": "1",
"logging": {
"version": "4",
"version": "5",
"ledger": "false",
"ledger_duplicate": "false",
"vote": "false",
Expand All @@ -30,6 +30,8 @@
"log_rpc": "false",
"bulk_pull": "false",
"work_generation_time": "true",
"upnp_details": "false",
"timing": "false",
"log_to_cerr": "false",
"max_size": "16777216",
"rotation_size": "4194304",
Expand All @@ -53,6 +55,7 @@
"online_weight_quorum": "50",
"password_fanout": "1024",
"io_threads": "4",
"network_threads": "4",
"work_threads": "4",
"enable_voting": "true",
"bootstrap_connections": "4",
Expand All @@ -61,7 +64,7 @@
"callback_port": "0",
"callback_target": "",
"lmdb_max_dbs": "128",
"generate_hash_votes_at": "1535760000"
"block_processor_batch_max_time": "5000"
},
"opencl_enable": "false",
"opencl": {
Expand Down
9 changes: 6 additions & 3 deletions ember-electron/config.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"max_json_depth": "20"
},
"node": {
"version": "14",
"version": "15",
"peering_port": "54000",
"bootstrap_fraction_numerator": "1",
"receive_minimum": "1",
"logging": {
"version": "4",
"version": "5",
"ledger": "false",
"ledger_duplicate": "false",
"vote": "false",
Expand All @@ -30,6 +30,8 @@
"log_rpc": "true",
"bulk_pull": "false",
"work_generation_time": "true",
"upnp_details": "false",
"timing": "false",
"log_to_cerr": "false",
"max_size": "16777216",
"rotation_size": "4194304",
Expand All @@ -44,6 +46,7 @@
"online_weight_quorum": "50",
"password_fanout": "1024",
"io_threads": "4",
"network_threads": "4",
"work_threads": "4",
"enable_voting": "true",
"bootstrap_connections": "4",
Expand All @@ -52,7 +55,7 @@
"callback_port": "0",
"callback_target": "",
"lmdb_max_dbs": "128",
"generate_hash_votes_at": "0"
"block_processor_batch_max_time": "5000"
},
"opencl_enable": "false",
"opencl": {
Expand Down
5 changes: 3 additions & 2 deletions ember-electron/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ const startDaemon = async () => {

const cpuCount = os.cpus().length;
config.node.io_threads = Math.max(2, Math.ceil(cpuCount / 2));
config.node.work_threads = Math.min(2, config.node.io_threads);
config.node.bootstrap_connections = Math.max(4, config.node.io_threads);
config.node.network_threads = config.node.io_threads;
config.node.work_threads = 2;
config.node.bootstrap_connections = Math.max(4, config.node.network_threads);
config.node.bootstrap_connections_max = Math.min(64, config.node.bootstrap_connections * 4);

const { version: configVersion } = config;
Expand Down
Binary file modified ember-electron/resources-darwin/rai_node
Binary file not shown.
Binary file modified ember-electron/resources-linux/rai_node
Binary file not shown.
Binary file modified ember-electron/resources-win32/rai_node.exe
Binary file not shown.

0 comments on commit e521b7d

Please sign in to comment.