Setting up InfraBlockchain-Antelope Block Producer node
Installation Methods
InfraBlockchain-Antelope currently supports the following operating systems:
Amazon Linux 2
CentOS 7
Ubuntu 16.04
Ubuntu 18.04
MacOS 10.14 (Mojave)
NOTE: If you are new to InfraBlockchain-Antelope, it is recommended that you install the InfraBlockchain-Antelope Prebuilt Binaries. If you are an advanced developer, a block producer, or no binaries are available for your platform, you may need to Build InfraBlockchain-Antelope from source depending on your OS.
Ubuntu package method
Compile source code method
Clone the
InfraBlockchain/infrablockchain
repository from Github like this:
NOTE: The step-1 is not needed, if the repository is already cloned. Directly, start from step-2.
Go to the
infrablockchain
folderpull the repository with required released version
update the submodules
Go to required version
Run Infra-node
infra-node
generally runs in 2 modes:
A. Producing/Active mode
Producing Validator Nodes
are configured for block production. They connect to the peer-to-peer (p2p) network and actively produce new blocks. Loose transactions are also validated and relayed. On mainnet, Producing Validator Nodes only produce blocks if their assigned block producer is part of an active schedule.
NOTE: System contracts required - These instructions assume you want to launch a producing validator node on a network with system contracts loaded. These instructions will not work on a default development node using native functionality, or one without system contracts loaded.
Goal
This section describes how to set up a producing node within the InfraBlockchain-Antelope network. A producing node, as its name implies, is a node that is configured to produce blocks in an InfraBlockchain-Antelope based blockchain. This functionality if provided through the producer_plugin as well as other infra-node Plugins.
infra-node plugins
Plugins extend the core functionality implemented in
infra-node
. Some plugins are mandatory, such aschain_plugin
,net_plugin
, andproducer_plugin
, which reflect the modular design ofinfra-node
. The other plugins are optional as they provide nice to have features, but non-essential for the nodes operation.The list of specific plugins are as follows:
chain_api_plugin
chain_plugin
db_size_api_plugin
history_api_plugin
history_plugin
http_client_plugin
http_plugin
login_plugin
net_api_plugin
net_plugin
producer_plugin
state_history_plugin
trace_api_plugin
txn_test_gen_plugin
Infra-node is modular: Plugins add incremental functionality to
infra-node
. Unlike runtime plugins, infra-node plugins are built at compile-time.
Pre-requisites
Install the InfraBlockchain-Antelope software before starting this section.
It is assumed that
infra-node
,infra-cli
, andinfra-keychain
are accessible through the path. If you built InfraBlockchain-Antelope using shell scripts, make sure to run the Install Script.Know how to pass Infra-node options to enable or disable functionality.
Steps
Please follow the steps below to set up a producing node:
Local Wallet
Register your account as a producing validator
Set Producer Name
Set the Producer's signature-provider
Define a peers list
Load the Required Plugins
1. Local Wallet
a. Create InfraBlockchain-Antelope Wallet locally. Record the password and keep secure.
b. Unlock InfraBlockchain-Antelope Wallet. Paste your wallet password
c. Account creation:
d. Load new account private key into your wallet
2. Register your account as a producing validator
In order for your account to be eligible as a producing validator, you will need to register the account as a producing validator:
NOTE: separate key pair used only for signing blocks and can not perform any other operation.
If you currently have your active key listed in your
config.ini
for signing blocks — you need to stop it and replace it with a separate Signature key
Just follow this in order to replace the existing active (or insecure key) with separate signature key
Create new key pair using
infra-cli create key --to-console
Replace signature provider record in your
config.ini
with the new key:signature-provider = EOS-SIGNATURE-PUBLIC-KEY=KEY:SIGNATURE-PRIVATE-KEY
Call regproducer command with the new signature key:
infra-cli system regproducer [PRODUCER-NAME] [EOS-SIGNATURE-PUBLIC-KEY] {PRODUCER_URL] [COUNTRY_CODE]
4. Set Producer Name
Set the validator_name
option in config.ini
to your account, as follows:
5. Set the Producer's signature-provider
You will need to set the separate private key for your validator. The public key should have an authority for the validator account defined above.
signature-provider
is defined with a 3-field tuple:
public-key
- A valid Antelope public key in form of a string.provider-spec
- It's a string formatted like :provider-type
- KEY or Infra-keychain
Using a Key:
6. Define a peers list
For more, visit here for InfraBlockchain-Antelope-mainnet or InfraBlockchain-Antelope-testnet
7. Load the Required Plugins
In your config.ini
, confirm the following plugins are loading or append them if necessary.
B. Non-Producing or Standby mode
Non-Producing Validator Nodes
connect to the peer-to-peer (p2p) network but do not actively produce new blocks; they are useful for acting as proxy nodes, relaying API calls, validating transactions, broadcasting information to other nodes, etc. Non-Producing Validator Nodes
are also useful for monitoring the blockchain state.
Goal
This section describes how to set up a non-producing validator node within the InfraBlockchain-Antelope network. A non-producing validator node is a node that is not configured to produce blocks, instead it is connected and synchronized with other peers from an InfraBlockchain-Antelope based blockchain, exposing one or more services publicly or privately by enabling one or more Nodeos Plugins, except the producer_plugin.
Pre-requisites
Install the InfraBlockchain-Antelope software before starting this section.
It is assumed that
infra-node
,infra-cli
, andinfra-keychain
are accessible through the path. If you built InfraBlockchain-Antelope using shell scripts, make sure to run the Install Script.Know how to pass Infra-cli options to enable or disable functionality.
Steps
Please follow the steps below to set up a non-producing node:
Set Peers
Enable one or more available plugins
1. Set Peers
You need to set some peers in your config ini, for example:
For more, visit here for InfraBlockchain-Antelope-mainnet or InfraBlockchain-Antelope-testnet
Or you can include the peer in as a boot flag when running infra-node
, as follows:
2. Enable one or more available plugins
Each available plugin is listed and detailed in the Infra-node Plugins section. When infra-node
starts, it will expose the functionality provided by the enabled plugins it was started with. For example, if you start infra-node
with state_history_plugin
enabled, you will have a non-producing node that offers full blockchain history. If you start infra-node
with http_plugin
enabled, you will have a non-producing node which exposes the Telos RPC API. Therefore, you can extend the basic functionality provided by a non-producing node by enabling any number of existing plugins on top of it. Another aspect to consider is that some plugins have dependencies to other plugins. Therefore, you need to satisfy all dependencies for a plugin in order to enable it.
Configuration Files
Mainnet
genesis.json
config.ini
Testnet
genesis.json
config.ini
Frequently Asked Questions (FAQs)
Q. What is the difference between InfraBlockchain Mainnet and Testnet?
A. The differences are as follows:
a. The mainnet of a blockchain launches when the protocol is fully developed and is the network where the project's functionalities, such as transactions with the native tokens, are carried out. Here is where transactions are being broadcasted, verified, and recorded on a distributed ledger technology. Whereas the testnet is a safe, separate network where developers carry out tests in the code without risking the main blockchain. The InfraBlockchain Testnets are a sandbox for testing newly implemented features, finding bugs within the network and developing DApps. a. Testnet is for testing code updates, other functionalities, bug identification, new projects and program development, among many other uses. b. People associate a testnet with the initial developing of a blockchain where all the codes run, and we test everything before the final deployment of the protocol to the mainnet. c. the InfraBlockchain testnets have one prominent advantage over the other testnets: it is a duplicate of the mainnet so it includes all its smart contracts and functionalities in the testnets. Because of this, developers and BPs obtain complete, accurate results when they run their tests, while reducing the work they have to do before running them. e. Testnet is designed to be as close to the code/features of the InfraBlockchain Mainnet, with exception to any new innovations being tested in preparation for deployment on Mainnet.
Last updated