Testnet Instructions — Windows

Image for post
Image for post

In order to increase security and stability of the Main Chain, rigorous RC1 load testing must be conducted. To achieve this, we need to simulate a load on the network. This load is important, as it will expose any instabilities or flaws in the system, so they can be reviewed and updated.

The following is a detailed explanation on how to participate using a Windows system — provided by the Hybrid Network team. There are 3 parts. The first is how to create a node on the testnet itself, the second is how to participate in staking and mining, and lastly is a set of important links to report any bugs which are found.

Please note that these instructions require the use of command lines, which requires some skill.

Part 1

How to participate in the Testnet:

Please follow the instructions below to build from source.

Video Guide (Windows)

Hx Testnet Build from Source Windows Part 1
Hx Testnet Build from Source Windows Part 2
Hx Testnet Build from Source Windows Part 3

Written Instructions to Build from Source (Windows)

Download the most recent version of Go at https://golang.org/dl.

Image for post
Image for post

Select the appropriate operating system to build from source with.

Intermediate Level — Step 1 (Windows)

Run the .msi file you just downloaded to install Go. Install Go to your C:\ drive.

Go to https://github.com/Masterminds/glide/releases and download the latest windows zip file. On most modern computers, you will want to download the windows-amd64 version. Extract the files and copy glide.exe to C:\Go\bin (this is the default go install directory. If you did not install Go to C:\Go please adjust to the appropriate directory).

Image for post
Image for post

Visit https://git-scm.com/download/win and download the latest version of Git for Windows.

Install Git with all default options.

Open up a Command Prompt Window. There are multiple ways to do this, but one way is to hold the Windows key and R (Win+R). This should bring a Run window up. Type in cmd in the empty box. Press enter or click OK.

Image for post
Image for post

A Command Prompt window will come up. Type the following commands:

cd %userprofile%

md go

cd go

md bin

setx PATH "%PATH%,%userprofile%\go\bin

md pkg

md src

cd src

md github.com

cd github.com

md hybridnetwork

cd hybridnetwork

md hxd

git clone https://github.com/hybridnetwork/hxd

git clone https://github.com/hybridnetwork/hxdwallet

cd hxd

glide install

cd..

cd hxwallet

glide install

Image for post
Image for post

Now open Windows PowerShell. Bring up the Run window again by pressing the Windows key and R (Win + R) at the same time. Type PowerShell and press enter or click OK.

In the Windows PowerShell, input the following commands:

cd $home

cd go\src\github.com\hybridnetwork\hxd

go install $(glide nv)

cd..

cd hxwallet

go install $(glide nv)

Image for post
Image for post

Running your Wallet

Create a new Command Prompt like in the last step. Enter these commands:

cd %userprofile%

cd go\bin

hxd -u user -P pass --testnet

The node has been created, leave this window running.

Image for post
Image for post

Creating a Wallet

In another Command Prompt window. Use the following commands:

cd %userprofile%

cd go\bin

hxwallet -u user -P pass --testnet --create

Type a priv passphrase for your new wallet and press Enter.

Type the same priv passphrase again and press Enter to confirm.

** For the purposes of testing, press Enter on the next two lines to choose default options**

Image for post
Image for post

***IMPORTANT*** WRITE your wallet information down. It contains your wallet generation seed and Hex, which will be needed if you want to recover your wallet.

Type “OK” and press enter to continue. Your wallet has been created.

Running your Wallet

With the active Command Prompt window for your wallet, continue with these commands:

hxwallet -u user -P pass --testnet

Keep this window open and running.

Testing your Wallet

Open up a new command prompt window. Enter the following commands:

cd %userprofile%

cd go\bin

hxctl -u user -P pass --testnet --wallet getnewaddress default

OR

hxctl -u user -P pass --testnet --wallet getnewaddress postquantum

This will generate a Default or Post Quantum address. Copy this address to your clipboard.

Image for post
Image for post

Using the Faucet and Block Explorer

Open up your web browser. Navigate to http://faucet1.hybrid.network. Paste your wallet address into the space provided and press send. You will receive a transaction id (txid).

Image for post
Image for post

Open up a new tab in your web browser. Navigate to http://explorer1.hybrid.network.

Image for post
Image for post

Paste your wallet address into the search bar at the top and press enter. Refresh if you do not see that your wallet has received Testnet tokens. It may take up to 5 minutes for your transaction to show and up to another 5 minutes to complete. Feel free to relax and stretch during this time and refresh your browser until it looks like this.

Image for post
Image for post

**Depending on the difficulty and hashrate on the Tesnet, this may take longer depending on the size mempool**

Now you can verify the transaction in the Command Prompt.

Open up the last Command Prompt window you had open that is not already running hxd or hxwallet. Type:

hxctl -u user -P pass --testnet --wallet getreceivedbyaddress walletaddresshere

Image for post
Image for post

You can also get a detailed view of your wallet and balance by entering:

hxctl -u user -P pass --testnet --wallet getbalance

Image for post
Image for post

You now have a running node and a Command-line wallet for Hx! If you’re interested in going to the next level, please see our instructional guide on staking and mining through Command-line.

Part 2

Written Instructions for Staking through Command-line (Windows)

In your file explorer window, type this into the address field:

%userprofile%\go\src\github.com\hybridnetwork\hxwallet

Then press Enter.

Image for post
Image for post

Copy sample-hxwallet.conf

In that same field type:

%userprofile%\appdata\local\hxwallet

Press Enter and Paste your file there.

Rename the sample-wallet.conf file to wallet.conf

Image for post
Image for post

Now right-click on the file and click Open With, then More Apps. Open Notepad.

Add the following lines to the file at the top and Save:

enablevoting=1

enableticketbuyer=1

Image for post
Image for post

If you already have a wallet running, shut the process down (Ctrl + C ) when you’re in that Command Prompt. Start it up again. If not, open up a new Command Prompt window and type the following commands:

cd %userprofile%

cd go\bin

hxwallet -u user -P pass --testnet

Enter your wallet priv passphrase.

Leave the hxwallet Command Prompt open.

Image for post
Image for post

Written Instructions for Mining through Command-line (Windows)

If you already have hxd in an open a Command Prompt, shut the process down (Ctrl + C ) when you’re in that Command Prompt. To start it up again, type the following:

hxd -u user -P pass --testnet --miningaddr=walletaddresshere

OR if you would like to see your hashrate

hxd -u user -P pass --testnet --miningaddr=walletaddresshere --debuglevel=debug

If not, open up a new Command Prompt and enter:

Cd %userprofile%

Cd go\bin

hxd -u user -P pass --testnet --miningaddr=walletaddresshere

OR if you would like to see your hashrate

hxd -u user -P pass --testnet --miningaddr=walletaddresshere --debuglevel=debug

Keep this hxd Command Prompt open.

Create a third Command Prompt. These commands will call to the hxd Daemon to begin mining:

Cd %userprofile%

Cd go\bin

hxctl -u user -P pass --testnet setgenerate true

Congratulations, you are now Staking and Mining in the Hx RC1 Testnet!

Part 3

Bug Reporting

Report bugs using integrated tracking in GitHub. Please follow the corresponding links. When reporting bugs please include as much information as possible, but not limited to the date, summary of the issue encountered, and suggested workaround.

hxd

hxwallet

hxify

testnetfaucet

hxstakepool

Block Explorer

Written by

The New Standard of Value

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store