Difference between revisions of "HowTo run NodeCore/zh-cn"
HakureiAnna (talk | contribs) (Created page with "注意:在Linux和Mac系统上,您可能需要通过运行以下命令来让nodecore shell脚本可执行:") |
HakureiAnna (talk | contribs) (Created page with "当您第一次运行NodeCore时,它将在新的testnet文件夹(nodecore.properties,veriblock.nodecore.log,nodecore.dat等)中创建其他几个文件,并加载...") |
||
Line 25: | Line 25: | ||
|} | |} | ||
− | + | 当您第一次运行NodeCore时,它将在新的testnet文件夹(nodecore.properties,veriblock.nodecore.log,nodecore.dat等)中创建其他几个文件,并加载现有的区块链文件。 | |
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. | 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. |
Revision as of 05:17, 15 October 2018
参见: Main_Page, NodeCore_Operations
Contents
概述
NodeCore是运行VBK区块链的服务。 它采用Java编写,可以在Windows,Linux和Mac上运行。
要查看安装NodeCore的操作指南,请参阅:NodeCore_Operations
步骤
解开压缩包:
Windows | Mac 和 Linux |
---|---|
解压缩nodecore-*.zip文件到bin文件夹中,然后运行nodecore.bat | 解压缩到首选目录,然后运行nodecore。
注意:在Linux和Mac系统上,您可能需要通过运行以下命令来让nodecore shell脚本可执行: chmod a+x nodecore |
当您第一次运行NodeCore时,它将在新的testnet文件夹(nodecore.properties,veriblock.nodecore.log,nodecore.dat等)中创建其他几个文件,并加载现有的区块链文件。
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 can block times be negative?
A negative age indicates the miner's clock was ahead.
For more background, see: https://en.bitcoin.it/wiki/Block_timestamp
How to upgrade NodeCore and keep your wallet
As a testnet, new versions of NodeCore will be released. Upgrading is relatively fast.
If you do NOT have a previous wallet/address/balance, then this is easy, just download and run the new NodeCore.
If you do have a wallet/address/balance that you want to carry over, this is still easy, just make sure you do the following:
- Make sure you have a backup of your wallet! You could copy the testnet folder, or use the NodeCore_CommandLine#importwallet command from the NC_CLI.
- Unzip NodeCore to a new folder location - do not overwrite your previous version
- In the new version:
- Create a testnet folder (probably in "nodecore-0.X.X\bin")
- Copy in your previous wallet.dat and walletconfig.dat files into "nodecore-0.X.X\bin\testnet".
- When you run NC_CLI getinfo on the new version, you should see your previous wallet and balance
How to upgrade NodeCore PoW and keep your Bitcoin testnet wallet
When upgrading your PoP miner, you can copy the file "bitcoin-pop-testnet.wallet" from the bin folder of your current PoP miner directory to the bin folder of your new PoP miner.
How to specify a data directory for NodeCore
NodeCore can take a data directory ~d as part of the startup.
Example for Linux:
cd /<myDir>/nodecore-0.1.7/bin ./nodecore -d ~/data/ > /dev/null 2>&1 &
- nodecore.properties will be in ~/data/nodecore.properties
- /testnet folder will be in ~/data/testnet
Example for Windows
cd <myDir>\nodecore-0.2.1-r2\bin nodecore.bat -d C:\data # nodecore.properties will be in C:\data\nodecore.properties # /testnet folder will be in C:\data\testnet
How to send from a specific address?
As of 7/18/2018, the send command only sends from the default address, there is not a public way to select the address.
A workaround is to call the setdefaultaddress (see: NodeCore_CommandLine#setdefaultaddress )
Then 'send' will use that new address.
Troubleshooting
NodeCore is stuck on a block
Ideally this should not happen, but if it does first try restarting NodeCore.
Java out-of-memory
It is possible that you only have a 32-bit version of Java installed. 64-bit is highly recommended.
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
NodeCore keeps turning off with "Application exit"
If messages like:
INFO [main] n.Program [Program.java:133] Application exit
Then something external is shutting off NodeCore (such as a server restart, external process kill, or something else).
Having trouble on a mac
On a Mac, you need to install the JDK (Java Development Kit) instead of just the JRE: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html