SUBNODE节点测试用户们, 视窗 10 的安装教程出来啦

SubstratumNode 视窗 10 安装教程

测试 RC2 版相当赞!不过,开发团队和 Subnode 社区亦明白技术上可能有点难度!

本教程将教导你:

  1. 如何下载和安装 SubstratumNode
  2. 如何创建(或还原)你的 ETH 钱包
  3. 如何创建对等网络设置
  4. 如何在测试网 (Ropsten)上获取 HOT代币
  5. 如何做端口转发

** 若这是你首次使用 SubstratumNode,请跳过步骤 1-3。

  1. 首先,确保你在 Task Manager 里停止或终止了所有的 SubstratumNode。(Ctrl+Alt+Esc)鼠标右键点击SubstratumNode -> End processes。
  2. 卸载你的视窗系统内的任何 SubstratumNode 版本。
  3. 到 C:Users\AppDataLocalSubstratum 文件夹删除任何存在的 node-data.db 文件。
    (注意:你的视窗系统内可能有超过一个 node-data.db 文件。)

下载 SubstratumNode RC2 软件

到 SubstratumNode 的下载页,然后下载 RC2 GUI installer – WINDOWS。解压缩所下载的 ZIP 格式文件到 C:Users\Substratum。

运行 SubstratumNode 来安装 1.0.0-rc.2.exe 文件。安装完成后,SubstratumNode 软件将会自动开启。

视你的安全设置而定,你可能会看到一个防火墙弹跳窗口提示,要求你准许软件与你的防火墙沟通。选择“隐蔽网络”(Private Network)选择,然后“准许进入”(Allow Access)。

点击设置菜单(SETTINGS)图标

设置菜单有多个选项。

钱包设置

SubstratumNode 准许你导入自己的钱包(用于用币(Consuming/serving)和赚币功能(Earning)),也能让你创建新钱包。

若你已经有 ETH 兼容的钱包,你可用钱包的 Mnemonic Seed Words 把钱包导入。

点击菜单上的“钱包设置”(Configure Wallet)。

若你要创建新的钱包

首个 tab 显示的“Generate”会默认创建一个能用做用币和赚币的钱包。

若想更改语言设置,请把默认的“English”换成你的语言。

现阶段,必须输入“Passphrase”,不过这是个虫—— Passphrase 是额外的助记词――请写下你自己的助记词组。

输入你的钱包密码;这密码是运行 SubstratumNode 软件时解锁个人密码。

当两个栏都完成输入后,“Generate”纽会换成绿色。

* 非必要选项:在你的 mnemonic phrase 内字词数改变字词的数,例子:2151821 24 个字能让你的钱包更安全。

若你想使用不同的钱包给用币和赚币功能,那么点击已勾选的复选框以去除它,如此一来你将创建两个钱包。

恭喜!你的钱包已创建。先别急!注意以下详情!

在接下来的步骤你需要有你的用币钱包。记得写下你的助记词组并妥善保持。完成了以上步骤,点击复选框确认,然后点击“Done”。你将回到 Status Tab。

若你选择复原(recovery)钱包

点击第二个 tab 将“复原”你的钱包,这可以是你的硬件钱包或你所导入到另个钱包的钱包,而你拥有该钱包的助记词组。

若想更改语言设置,请把默认的“English”换成你的语言。

Passphrase 为非选项——这是额外的记组词——若你使用额外的记助词组记得写下来妥善保管。

若你想使用不同的钱包给用币和赚币功能,那么点击默认的勾选复选框以去除它——连个不同的路径将显示。输入你要的路径,若想了解如何选择路径给你的钱包地址,请阅读此手册

输入钱包密码,这是你用来解锁 SubstratumNode 的个人密码。别给弄丢了;若不幸弄丢,你得把软件的数据库删除并重新安装软件。

两个栏都填好后,“SAVE”纽会变成绿色。

网络设置

在运行 SubstratumNode 前,你需做些设置来连接到邻里(Neighborhood)!点击设置图标,然后点击 “Settings”来完成所需步骤。

在RC2 版,你需有两个特别的网络元件来运行 SubstratumNode:

  1. 节点描叙符(NODE DESCRIPTOR)
  2. 区块链服务地址(BLOCKCHAIN SERVICE URL)

节点描叙符(NODE DESCRIPTOR)

节点描叙符由三个串连部分组成:公共钥、外部 IP 地址和节点隐匿端口(Clandestine Port)。例子:

Wd46Y/Q3dhhXaALUHecfhqGFgCME2+kjRCPhWNPbTFU:57.32.128.71:10500

节点描叙符由其他 SubstratumNode 的用户提供。你可到我们的 SubstratumNode 的电报社区,或其它渠道例如运行节点的社区成员所创建的超赞 subnodes.io 网站上查找。

你可把节点描述符拷贝到“社区节点描述符”(Neighbor Node Descriptor)栏内。

提醒:鉴于墙内用户的不安全环境,请务必确认你拿到的节点描述符来自 SubstratumNode 的电报社区和/或可信赖的社区成员。除非你信任发贴人,请勿使用任何贴在墙内中文网上或社交频道如推特、脸书等出自中文贴/推文等的节点描述符。

区块链服务地址(BLOCKCHAIN SERVICE URL)

区块链服务地址用于核算用途,因为节点软件需确认节点有个同时存有 HOT 币和测试 ETH(ROP tokens)的用币钱包来支付用币网络的要求。

最方便的方法是使用第三方服务;另一个方法是运行你自己的 GETH 节点。

这里我们使用的是 https://infura.io 的服务。

https://infura.io 网站创建一个账号。记得使用你能收到邮件的邮箱地址。

确认你收到的确认邮件。

选择 “free plan for 100,000 queries per day”,这已足够让你运行 SubNode 的 RC2 版。之后你将来到 Dashboard 页面。

点击 “Create a project”,取个名字——为方便记得,可写 SubNode 或相似的名字。

完成后,点击 “View Project” 来获取区块链服务信息。

我们要找的是 “Project ID”的比配钥,例子:

 bbe49b41e7504049ae55584ab87aa01c

这将会被添加到 URL 地址的末端,不过,因为 Substratum Network 的主网尚未投入服务,我们需修改端点(Endpoint)来连接到 Ropsten 的测试网。

点击端点(Endpoint)的下拉菜单,选择 ROPSTEN。太好了!你现在有了个区块链服务地址给测试网用!

添加“https://”到 URL 地址的前端。例子:

https://ropsten.infura.io/v3/bbe49b41e7504049ae55584ab87aa01c

把它复制到 SubNode 软件的网络设置(Network Settings)的“Blockchain Service URL”内。

如何获取 HOT 币

请参考如何索取 HOT 币文章。

成功获取 HOT 币后,把它寄到你的 Subnode 用币钱包。

启动节点!

好了!所有的节点设置都已完成,而你的用币钱包也收到了 HOT 币。

确认你已输入了节点描述符和区块链服务地址,然后点击“SAVE”。

点击“SERVE”按钮!

若一切无误,“SERVE”按钮将保持红色,而你的节点描述符将显示于下。你可点击“COPY”把你的节点描述符发给想运行 SubNode 的人,或放到电报社区内让其它成员用。

路由器上做端口转发

SubstratumNode 需要利用你的宽频网络来与 Substratum 网络做双行道沟通。

鉴于安全考虑和其设计原理,SubstratumNode 利用路由器来做端口转发,这有点像在你的防火墙和路由器上打开一个洞借以让 SubNode 能发出和接收数据。

端口号是节点描述符的最后 4 或 5 个数字。例子:

Wd46Y/Q3dhhXaALUHecfhqGFgCME2+kjRCPhWNPbTFU:57.32.128.71:10500)

(以上例子显示的节点描述符使用了端口 10500)

不同厂家的路由器有稍微不同的端口设置步骤。首先,用浏览器进入路由器的后台管理;路由器的后台管理地址不同厂家有别,一些厂家使用 IP 做为地址(例如 http://10.1.1.1 ),另一些用的是名字(例如 http://routerlogin.net)。地址通常会印在路由器的黏贴上,包括印有默认的登入用户名和密码——记得修改一个强大的密码并记下来!

这个端口转发信息网站收有许多厂家的牌子的路由器
https://portforward.com/router.htm

你需要有以下的信息来做端口转发:

  1. 用于运行 SubNode 的电脑的 IP 地址——别混淆了,这不是 SubNode 设置页上显示的外部 IP 地址。
  2. 节点描述符栏显示的端口号码――最后 4 或 5 个数字。

端口转发设置好后,你可在 SubNode 软件内点击“Consuming ”来启动用币功能。

若你看到错误信息,请抓个图,然后把它发到 Substratum Official Telegram 上或给我们发封邮件让我们知道。

Want to support Internet Freedom? Please spread the word 🙂

Website Updates and RC2 Incoming

I’ve been quieter than normal with a number of things going on, but there are some exciting updates in the Community!

The FAQ on our website has now been built out and has a lot of great information and links to learn more about how what SubstratumNode is, how it works and help with some troubleshooting with the RC1 TestNet.

Tara from our Community has posted a Chinese Tutorial to help those users get their HOT test tokens and install and run SubstratumNode in their region! Thanks TARA!

The Testing Community has been buzzing with over 1 MILLION HOT tokens being send across from the HOT Faucet for the testnet. This is incredible and shows how active and excited our Community is after many months of watching development closely. Get your HOT tokens now!

BJ Allmon has been spearheading the updates as usual on Twitter and Telegram, and represents arguably one of the most transparent development teams in the Crypto-Software space, keeping all observers on the pulse of how the Node software is moving.

Open Source transitioning is nearly complete (all under GPL3 Licensing) and BJ also completed migration of the JIRA workflows into the team GitHub Project page. It’s expected that a ton more development will be in store now the public community can get more involved in building.

RC2 is about to be packaged and delivered in the coming week, so a number of bug fixes and feature upgrades to the GUI will be rolled out to the excited Community.

Get involved in the Community via our Social Accounts, and Subscribe for Updates below!

Subscribe to our Wiki to get Updates!

Want to support Internet Freedom? Please spread the word 🙂

SUBSTRATUMNODE COMMAND-LINE (CLI) PROCEDURE (WIN10)

Special thanks to @Itsfitts in from our Telegram Community
Telegraph Link for Instant View: https://telegra.ph/SubstratumNode-Command-line-CLI-Proceedure-Win10-08-10

**If this is your first time using SubstratumNode skip steps 1-2

(1) First, make sure you have stopped/killed all running instances of SubstratumNode in Task Manager. `(Ctrl + Alt + Esc) -> Right-click on SubstratumNode -> End processes.`

(2) Navigate to C:\Users\<Your User>\AppData\Local\Substratum and delete any existing node-data.db file.

(3) Visit IPChicken.com and notate your External IP address for later.

(4) Visit the SubstratumNode download page, and download the RC1 CLI tool.

(5) Extract the downloaded file to C:\Users\<Your User>\Substratum

(6) Press Start, type CMD, right-click, and select Run-as-Administrator.

(7) In CMD type:
cd C:\Users\<Your User>\SubstratumNode

If you are recovering an existing wallet

(8a) In CMD type:
SubstratumNode –recover-wallet –data-directory C:\Users\<Your User>\AppData\Local\Substratum –earning-wallet <Insert Your 0x Earning Wallet Address Here> –mnemonic “replace the words inside these double quotes with your twelve mnemonic words” –wallet-password

(9a) Enter a wallet password at the prompt

If you are generating a new wallet

(8b) In CMD type:
SubstratumNode –generate-wallet –data-directory C:\Users\<Your User>\AppData\Local\Substratum –wallet-password

*Optionally include –mnemonic-passphrase to be prompted for an extra phrase, further encrypting your wallet. Leave blank to skip.

*Optionally include –word-count to change the number of words in your mnemonic phrase, i.e 12, 15, 18, 21, or 24 words, further securing your wallet.

(9b) Enter a wallet password at the prompt.

Blockchain Service URL

The `–blockchain-services-url` is required for accounting purposes, as we need to be able to query data from the Ethereum blockchain to be sure nodes can pay their bills. This can be done by either running a geth node yourself, or by obtaining the data from a 3rd party provider. Eventually this will be handled directly over the Substratum Network. For the purpose of this guide we will use https://Infura.io.

(10a) Create an account on https://infura.io, Confirm the verification email. Select the free plan for 100,000 queries per day. More than enough for SubNodes.

(10b) Create a project, I named mine SubstratumNode. You will then be presented with some information. We are looking for the provided “Project ID”, it looks something like ccvadd08798sdgewrscaa which we will add to the end of this URL https://ropsten.infura.io/v3/ to give as a value for the –blockchain-services-url arguement.

Clandestine Ports

If you expect to Serve, you absolutely must do some Port Forwarding on your router. For the purpose of this tutorial I used port 10000. This will be the value provided after the –clandestine-port argument. You may need to do some searching to figure Port Forwarding out, as manufactured router models vary greatly. You can safely choose any port < 60000.

Node Descriptors

Node Descriptors are made up of three parts, a combination of Public Keys, External IP addresses, and the nodes Clandestine Port. They Look something like this ` YCn/Q3dhhXaALUHecehqGFgCME2KV+kjRCPhWNPbTFU:52.32.118.33:10000`. You will most likely encounter these in a social manner throughout the SUB community, be sure to check the pinned post in Telegram.

(12) In CMD type:
SubstratumNode –blockchain-service-url https://ropsten.infura.io/v3/<Insert Your Project ID Here> –data-directory C:\Users\<Your User>\AppData\Local\Substratum –ip <Insert Your External IP Here> –dns-servers 1.1.1.1 –neighbors <Insert Node Descriptor Here>,<Insert Node Descriptor Here>,<Insert Node Descriptor Here> –clandestine-port 10000 –log-level trace –gas-price 1 –wallet-password

(13) Enter your wallet password at the prompt.

(14) Let the node spin up and watch as it hopefully begins Gossiping with other nodes. Give it at least 10 seconds to “warm up” and establish some connections.

(15) Visit IPChicken.com or similar to see if your External IP address has changed. Do a speedtest and let us know about your #SubSpeedTest results in the Telegram group! If you need further assistance our wonderful community is here to lend a hand!

(16) To stop running nodes, press Ctrl + C in CMD. 

#Decentralize $SUB #SubstratumNode
Want to support Internet Freedom? Please spread the word 🙂

Video Guide Windows 10 with Bastiaan

BIG thanks to Bastiaan – the man who showed the original SubNode Proof of Concept!
His video walks through installing and setting up SubstratumNode on a Windows 10 machine

Don’t forget since we are in RC1, to get your Ropsten test ETH (ROP) and your HOT tokens (use this guide)

Steps Taken in Guide:

  1. Install & Generate Wallet (substratum.net/downloads) – download the GUI one
    • Please keep in mind that a passphrase is an additional seed word and is completely optional
    • Always save your Seed Words (mnemonic phrase)
    • If you want to learn more about mnemonic code check out this article (https://substratum.wiki/updates/the-safe-maker/)
  2. Get Testnet ETH (ROP on Ropsten network) – https://faucet.ropsten.be
  3. Wait 5 minutes
  4. Get HOT Tokens (you can use our Wiki Guide here for help with MetaMask)
    • This video shows using just the seed words and MyEtherWallet
  5. Starting the Node
    • You will need a descriptor from our Community and your Earning Wallet
    • Don’t forget to enter your Wallet Password

Want to support Internet Freedom? Please spread the word 🙂

Getting HOT Tokens For Testing

Just wanted to post my experience getting HOT tokens, since a few users may be confused if they aren’t too familiar with wallets, Ropsten Test Network and gettting ROP (Testnet version of ETH) on the Ropsten faucet.

I’m a Metamask user (and their Beta Android app is GREAT by the way – try it here), and I’m also experienced using MyEtherWallet (MEW), so for me this process was actually pretty fast.

The full HOT Faucet guide is on the SubstratumNetwork github (link here) but you actually only need the following to make this quick and painless:

  1. ETH Wallet set up with MetaMask plugin on your browser – make sure you are logged into the plugin so it is actively running in backgrounds on your browser
  2. Your Wallet address
  3. 5-7 minutes of time

Here’s my RUN-THROUGH, with links and pretty pictures:

STEP ONE – Get your ROP (Ropsten ETH)

Ropsten is a Test Ethereum network that runs on a duplicate blockchain to real Ethereum.

To get Ropsten ROP, you need to go to the Ropsten Faucet Page and enter in your wallet address of the wallet you want the HOT tokens in for using with Substratum Node (SubNode). Keep in mind that the normal Ethereum and Ropsten Networks run in parallel and the wallet addresses are interchangeable – your wallet will show different balances depending on what network you are viewing them from:
NOTE: always check what network you have activated when you do ANY transactions with your wallet, unless it is a ‘burner wallet’

Copy and paste your wallet address into the Ropsten Faucet window and press “Send me test ether”

VOILA! Within about 60 seconds you will have Test ETH on Ropsten network

STEP TWO – USE THE BUYTokens FUNCTION TO GET HOT

This part is a bit technical for some, but with MetaMask and a bit of copy-paste on the MEW classic website, this can be EASY!

Make sure you are logged in to your MetaMask plugin in the browser, and also ensure that POP-UPs are NOT BLOCKED for the site, or else your MetaMask plugin may not appear

First, navigate to the Classic MyEtherWallet page – as a general rule, always type out the URL for this and don’t trust any links online to navigate to this page – you could get Phished!

Go to https://vintage.myetherwallet.com/ (don’t trust, VERIFY 😉 )

Double check that Gas Price is set to 1 Gwei, and the Network is selected as Ropsten

  • Click on the Contracts tab.
  • Copy the HOTSwap contract address:
    0x1D735051A431c06185927C27AEcea99520634832 and paste it in the “Contract Address” field
  • Also copy the buyTokens() JSON Interface text:
  • [{"constant": false, "inputs": [{"name": "beneficiary", "type": "address"}], "name": "buyTokens", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}]
  • Paste it in the “ABI / JSON Interface” field.

It should look like this:

  • Click the Access button
  • When presented with the “Select a function” drop-down, select buyTokens.
    See the image below
  • Selecting buyTokens will expand the form to reveal a “beneficiary” address field. Enter the wallet address from which you will send test Ether (ROP). This the same address you used in STEP ONE to Get Your ROP above.
  • Scroll down slightly – you should now see this area of the page about how to access your wallet.

Click “Connect to MetaMask” – don’t worry as the screen doesn’t change much, but the Access options may disappear

Now click the blue “Write” button – a window will appear to ask you how much ROP you want to send to the buytoken function. Each ROP will buy 5000 HOT tokens. Remember there are still gas fees, so hold back a small fraction of ROP to make sure there is enough. The Gas Limit will usually fill in a number automatically.

Click “Generate Transaction” – the windows expands showing the raw and signed transaction data.

Verify everything looks correct and then click “Yes, I am sure! Make transaction”

A Pop-Up windows will open from your MetaMask plugin, where you can confirm the transaction. When you click the green “SUBMIT” button it will submit the transaction to the blockchain and the smart contract will convert your ROP into HOT tokens!

And that is that! In about 2 minutes (depending on network congestion and your gas limit) you should see the HOT tokens.

Don’t forget to add ‘Custom Token’ in your MetaMask plugin so you can view the token balance for HOT.

The token address is: 0xcd6c588e005032dd882cd43bf53a32129be81302
And you can find it on Etherscan.io at this link

Not so hard if you use MetaMask and these instructions 😉

Want to support Internet Freedom? Please spread the word 🙂

How to Build a Node on CentOS

Instructions for setting up a Build Environment on CentOS for compiling SubstratumNode to run in CLI mode

  1. Install CentOS 7.6
  2. Do all system updates
    sudo yum -y update
  3. Do a reboot
    sudo yum reboot
  4. Set the TimeZone so the logfiles show the correct date and time, example:
    sudo timedatectl set-timezone America/New_York
  5. Install dependencies part 1
    sudo yum -y install git openssl-devel
  6. Install dependencies part 2
    sudo yum -y groupinstall "Development Tools"
  7. Install Screen utility. This is optional, but very useful for keeping SubstratumNode running and disconnecting your terminal
    sudo yum -y install screen
  8. Install Rust environment
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    source $HOME/.cargo/env
    rustup component add rustfmt
  9. Clone the SubstratumNode repo
    git clone https://github.com/SubstratumNetwork/SubstratumNode.git
  10. Build the binaries
    cd SubstratumNode
    ci/release.sh


    Building will take some time. ~15 minutes on a 1 CPU system

    Configuring and Running the node will be covered in another post

Want to support Internet Freedom? Please spread the word 🙂