Stage 3, onboarding public validators, is an ongoing section the place public nodes will likely be onboarded progressively to extend the diploma of decentralization of the BandChain community whereas additionally guaranteeing stability. To reiterate, that is obtainable to anybody in most people who will be capable to run their very own node, stake BAND tokens, and be part of the open community. Beneath is a information to working the BandChain Mainnet validator node.
Step 1: Setting-up Server and Putting in BandChain Wenchang
For this information, we’re assuming that you’re working an Ubuntu 18.04 LTS machine that permits incoming connections on port
26656. We begin by putting in utility instruments on the machine.
BandChain Wenchang Mainnet launch is obtainable on Github as a launch. You’ll be able to obtain
bandcli binaries straight.
Alternatively, you may checkout the launch tag and construct from sources.
Step 2: Creating BandChain Account and Setup Config
As soon as put in, you should utilize
bandcli to create a brand new BandChain pockets handle and use
bandd to initialize the chain. Please make sure that to maintain your mnemonic secure!
You’ll be able to then obtain the official genesis file from the repository. You must also add the preliminary peer nodes to your Tendermint configuration file and set the minimal gasoline value your node is keen to simply accept transactions.
Step 3: Begin Your Blockchain Daemon
With all configurations prepared, you can begin your blockchain node with a single command. On this tutorial, nonetheless, we are going to present you a easy solution to arrange
systemd to run the node daemon with auto-restart.
- Create the next config at
/and so on/systemd/system/bandd.service. You will have to edit the default username
ubuntuto your machine username. Observe that you could be want to make use of
sudobecause it lives in a protected folder.
2. Set up the service and begin the node.
Whereas not required, it is strongly recommended that you simply run your validator node behind your sentry nodes for DDOS mitigation. See this thread for some instance setups.
Your node will now begin connecting to different nodes and syncing the blockchain state.
Step 4: ⚠️ Wait Till Your Chain is Totally Sync
You’ll be able to tail the log output with
journalctl -u bandd.service -f. If all goes effectively, you need to see that the node daemon has began syncing. Now you need to wait till your node caught up with the latest block.
... bandd: I[..] Executed block ... module=state top=269819 ...
... bandd: I[..] Dedicated state ... module=state top=269819 ...
... bandd: I[..] Executed block ... module=state top=269820 ...
... bandd: I[..] Dedicated state ... module=state top=269820 ...
... bandd: I[..] Executed block ... module=state top=269821 ...
... bandd: I[..] Dedicated state ... module=state top=269821 ...
... bandd: I[..] Executed block ... module=state top=269822 ...
... bandd: I[..] Dedicated state ... module=state top=269822 ...
See the explorer for the peak of the newest block. Syncing ought to take a number of to a number of hours, relying in your web connection. You shouldn’t proceed to the following step till your node caught as much as the newest block.
Step 5: Ship Your self BAND Token
With all the pieces prepared, you have to some BAND mainnet tokens to use as a validator. You need to use
bandcli keys checklist command to indicate your handle.
$ bandcli keys checklist
- title: ...
Step 6: Apply to Turn into Block Validator
Upon getting some BANDs, you may apply to turn out to be a validator by sending
$ bandcli tx staking create-validator
--pubkey $(bandd tendermint show-validator)
As soon as the transaction is mined, you need to see your self on the validator web page. Congratulations. You at the moment are a working BandChain mainnet validator!
By having each skilled and neighborhood validator nodes on BandChain Section 0, the diploma of decentralization and the safety of the community will likely be considerably improved.
We’ll shortly start testing Section 1 of BandChain with the neighborhood quickly which is in remaining levels and present process a safety audit. To help the Section 1 launch we will likely be releasing within the coming weeks:
- A technical deep-dive collection on how Band Protocol oracle works
- An instruction on how one can be part of BandChain Section 1 testnet
- Extra element on developer grants and bounties to neighborhood builders
To remain up to date as quickly as doable, comply with our growth progress and releases right here: