Starcoin Wiki
MoveMove 社区Aptos WikiSui Wiki
English
English
  • 🎉Welcome
  • 💫Overview
    • Vision & Mission
    • White Paper
  • 📖Get Started
    • Wallet
      • StarMask
      • OneKey
    • Trading
    • Run Node
      • Windows
        • Run a node on Windows
        • Upgrade & Migrate a node on Windows
      • Docker
        • Run a node with Docker
        • Upgrade & Migrate a node with Docker
      • FAQ
    • Block Explorer
  • ⛏️Mining
    • GoldShell S1 Mini
    • GoldShell STC Box
    • Mining on CPU
    • Mining on GPU
  • 🏛️Governance
    • Poll
    • Airdrop
    • Grants
  • 🏞️Eco
    • Move
    • DeFi
      • BFly
      • WENWEN Protocol
    • Swap
      • Starswap
      • Kikoswap
      • Aswap
    • NFT
      • CyberRare
      • KikoVerse
    • GameFi
      • Arm Wrest War
Powered by GitBook
On this page
  • Preparation
  • Stop the original node
  • Start a new node
  • Import the private key and set it as the default account

Was this helpful?

Edit on GitHub
  1. Get Started
  2. Run Node
  3. Windows

Upgrade & Migrate a node on Windows

PreviousRun a node on WindowsNextDocker

Last updated 3 years ago

Was this helpful?

Preparation

The private key of the original node must be exported first! ! !

Prepare the private key for importing the node account. Private key export tutorial, .

Stop the original node

If you are migrating a node, you can skip this step.

Start a new node

Unzip the downloaded compressed package to overwrite the file of the previous version.

Note:

  • If you don't need to start the mining pool, you can delete the last parameter: --stratum-address 0.0.0.0 --stratum-port 9880;

  • --net main: Specify the main network, the test network can write barnard;

starcoin.exe --net main ^
    --disable-metrics true ^
    --miner-thread 0 ^
    --node-name starcoin-main ^
    --data-dir C:\starcoin\data ^
    --logger-disable-file true ^
    --stratum-address 0.0.0.0 --stratum-port 9880

Import the private key and set it as the default account

Connect to the console (premise: the node is running):

starcoin.exe -c \\.\pipe\starcoin\main\starcoin.ipc console

Check the default account on the new node:

account default

If the account is your own, it is over. If the account is wrong, please import the private key and set it as the default account.

Import private key:

% account import -i your_private_key

Set as default account:

% account default your_account

📖
click here