Skip to content
Permalink
Browse files

feat(electron): upgrade node to V18.0RC3

  • Loading branch information...
devinus committed Feb 20, 2019
1 parent 67512b6 commit b03a4be828f092954852bc75f86e23b8efc59b84
@@ -7,15 +7,16 @@
"enable_control": "true",
"frontier_request_limit": "16384",
"chain_request_limit": "16384",
"max_json_depth": "20"
"max_json_depth": "20",
"enable_sign_hash": "false"
},
"node": {
"version": "15",
"version": "16",
"peering_port": "54000",
"bootstrap_fraction_numerator": "1",
"receive_minimum": "1",
"logging": {
"version": "5",
"version": "6",
"ledger": "false",
"ledger_duplicate": "false",
"vote": "false",
@@ -28,18 +29,19 @@
"node_lifetime_tracing": "false",
"insufficient_work": "true",
"log_rpc": "true",
"log_ipc": "true",
"bulk_pull": "false",
"work_generation_time": "true",
"upnp_details": "false",
"timing": "false",
"log_to_cerr": "false",
"max_size": "16777216",
"max_size": "134217728",
"rotation_size": "4194304",
"flush": "true"
},
"work_peers": "",
"preconfigured_peers": [
"rai-beta.raiblocks.net"
"peering-beta.nano.org"
],
"preconfigured_representatives": [
"xrb_3betaz86ypbygpqbookmzpnmd5jhh4efmd8arr9a3n4bdmj1zgnzad7xpmfp",
@@ -54,14 +56,29 @@
"io_threads": "4",
"network_threads": "4",
"work_threads": "4",
"enable_voting": "true",
"signature_checker_threads": "3",
"enable_voting": "false",
"bootstrap_connections": "4",
"bootstrap_connections_max": "16",
"callback_address": "",
"callback_port": "0",
"callback_target": "",
"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": {
@@ -7,15 +7,16 @@
"enable_control": "true",
"frontier_request_limit": "16384",
"chain_request_limit": "16384",
"max_json_depth": "20"
"max_json_depth": "20",
"enable_sign_hash": "false"
},
"node": {
"version": "15",
"version": "16",
"peering_port": "7075",
"bootstrap_fraction_numerator": "1",
"receive_minimum": "1",
"logging": {
"version": "5",
"version": "6",
"ledger": "false",
"ledger_duplicate": "false",
"vote": "false",
@@ -28,18 +29,19 @@
"node_lifetime_tracing": "false",
"insufficient_work": "true",
"log_rpc": "false",
"log_ipc": "false",
"bulk_pull": "false",
"work_generation_time": "true",
"upnp_details": "false",
"timing": "false",
"log_to_cerr": "false",
"max_size": "16777216",
"max_size": "134217728",
"rotation_size": "4194304",
"flush": "true"
},
"work_peers": "",
"preconfigured_peers": [
"rai.raiblocks.net"
"peering.nano.org"
],
"preconfigured_representatives": [
"xrb_3arg3asgtigae3xckabaaewkx3bzsh7nwz7jkmjos79ihyaxwphhm6qgjps4",
@@ -57,14 +59,29 @@
"io_threads": "4",
"network_threads": "4",
"work_threads": "4",
"enable_voting": "true",
"signature_checker_threads": "3",
"enable_voting": "false",
"bootstrap_connections": "4",
"bootstrap_connections_max": "16",
"callback_address": "",
"callback_port": "0",
"callback_target": "",
"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": {
@@ -7,15 +7,16 @@
"enable_control": "true",
"frontier_request_limit": "16384",
"chain_request_limit": "16384",
"max_json_depth": "20"
"max_json_depth": "20",
"enable_sign_hash": "false"
},
"node": {
"version": "15",
"version": "16",
"peering_port": "54000",
"bootstrap_fraction_numerator": "1",
"receive_minimum": "1",
"logging": {
"version": "5",
"version": "6",
"ledger": "false",
"ledger_duplicate": "false",
"vote": "false",
@@ -28,12 +29,13 @@
"node_lifetime_tracing": "false",
"insufficient_work": "true",
"log_rpc": "true",
"log_ipc": "true",
"bulk_pull": "false",
"work_generation_time": "true",
"upnp_details": "false",
"timing": "false",
"log_to_cerr": "false",
"max_size": "16777216",
"max_size": "134217728",
"rotation_size": "4194304",
"flush": "true"
},
@@ -48,14 +50,29 @@
"io_threads": "4",
"network_threads": "4",
"work_threads": "4",
"signature_checker_threads": "3",
"enable_voting": "true",
"bootstrap_connections": "4",
"bootstrap_connections_max": "16",
"callback_address": "",
"callback_port": "0",
"callback_target": "",
"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": {
@@ -175,6 +175,7 @@ const startDaemon = async () => {
config.node.io_threads = Math.max(2, Math.ceil(cpuCount / 2));
config.node.network_threads = config.node.io_threads;
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_max = Math.min(64, config.node.bootstrap_connections * 4);

@@ -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);

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

0 comments on commit b03a4be

Please sign in to comment.
You can’t perform that action at this time.