Difference between revisions of "HowTo run NodeCore"

From Veriblock Wiki
Jump to: navigation, search
Line 31: Line 31:
  
 
The easiest way to upgrade is to copy the testnet folder (which contains the wallet, blockchain, and many files listed here: [[NodeCore_File_Structure]]) to the new version.
 
The easiest way to upgrade is to copy the testnet folder (which contains the wallet, blockchain, and many files listed here: [[NodeCore_File_Structure]]) to the new version.
 +
 +
== Troubleshooting ==
 +
 +
=== Java out-of-memory ===
 +
 +
Modify the start file (nodecore.bat for windows, nodecore for linux) to increase the memory limit. Pass in a value, such as "1024 MB" into the DEFAULT_JVM_OPTS variable:
 +
 +
<pre>
 +
DEFAULT_JVM_OPTS=-Xmx1024m
 +
</pre>

Revision as of 20:35, 2 June 2018

See: Main_Page

Overview

NodeCore is the service that runs the VBK blockchain. It is written in Java, and runs on Windows, Linux, and mac.

Steps

Unzip the package:

Windows Mac and Linux
Unzip the nodecore-*.zip file In the bin folder, then run nodecore.bat Unzip to your preferred directory, then run nodecore.

Note: On Linux & Mac systems, you may need to make the nodecore shell script executable by running the following command:

chmod a+x nodecore

When you first run NodeCore, it will create several other files in a new testnet folder (nodecore.properties, veriblock.nodecore.log, nodecore.dat, etc...), and load the existing blockchain.

NodeCore may take several minutes to load all the blocks in the blockchain. See the highest block at https://TestNet.Explore.Veriblock.org. This shows the number of blocks your local instance must load. NodeCore will create a cache file such that when you restart it they will load faster next time.

FAQ

How do I keep my wallet when upgrading to a new version of NodeCore?

The easiest way to upgrade is to copy the testnet folder (which contains the wallet, blockchain, and many files listed here: NodeCore_File_Structure) to the new version.

Troubleshooting

Java out-of-memory

Modify the start file (nodecore.bat for windows, nodecore for linux) to increase the memory limit. Pass in a value, such as "1024 MB" into the DEFAULT_JVM_OPTS variable:

DEFAULT_JVM_OPTS=-Xmx1024m