Become Storage Provider
Docker
Step by step
Step 1: Docker Environment Preparation
Confirm Docker is running after install.
Step 2: Set up the home directory
Set node home directory:
Using "~/memo_provider" as an example:
Set node data storage directory:
~/memo_provider_data as an example:
The home directory contains config file and other files for running a node, the storage directory is where data is stored.
Step 3: Pull image (provider)
Step 4: Initialization(Create new wallet)
Execute the initialize command, which will generate your wallet address and generate a configuration file.
Explanation of arguments:
--password: Enter your provider password, the default is memoriae.
Step 5: Check wallet address
Explanation of arguments:
wallet default: Get the default wallet address
Step 6: Top up
Starting node needs both the Memo and cMemo token.
To get the cMemo token, there is one faucet, https://faucet.metamemo.one/
This is the MemoChain information.
Memochain information
Chain RPC: https://chain.metamemo.one:8501/
Currency name: CMEMO
Chain ID: 985
Chain browser: https://scan.metamemo.one:8080/
To get Memo Tokens for your wallet, you can transfer some Memo Tokens from other wallet address which has enough Memo Tokens. The provider needs minimum 30 Memo Tokens.
Join our discussing with Slack Link:
Step 7: Modify the configuration file
Step 8: Start node
Please make sure your provider home directory and password are the same as in the previous step.
If there is any deploy issue. Please join the deploy-node discussing with Slack Link:
Checking the running status
Step 1: Enter the docker container
After entering the container, you can use the mefs-provider command to perform operations.
Step 2: Check provider information
Step 3: Declare
• When participating as a provider node, you need to execute the declare command (declare the public network address) for communication between nodes;
• Get your public network ip+port ready, I will show you below;
• Note: Execute the command in the container;
• The command mefs-provider info can only be executed after the sync information displays as true. Although the synchronization can be successful without doing so, it will not be able to communicate with other nodes.
Parameter explanation
X.X.X.X is your public ip address.
Port 4007 is your public network port, and the mapped port is the host's port 4001 (-p 4001: the first port 4001 of the boot parameter).
Check network status
Get local node network information
Command description: Enter command net info to view the network id (cid), ip address and port of the current node.
Get the network connection information of the node
Command description: Enter command net peers to view the network connection information of the current node.
Connect to a specified node
Command description: Enter command net connect to connect to any node; if there is any problem with your node network, please enter command net connect to connect to our public node.
COMMON MISTAKES
ERROR 1
not have tx fee on chain
Solution:
Check the node, both of the cMemo token balance, and the memo balance. The Memo token balance must meet the minimum amount for node startup.
ERROR 2
execution reversed: can't unpledge during 180d
Solution:
The node pledge amount needs to be withdrawn 180 days after the last pledge.
ERROR 3
If the log reports that the meta and state files are missing, you can perform the Recover operation.
Solution:
mefs-provider recover db --path /home/mcloud/provider2/.memo-provider/meta
mefs-provider recover db --path /home/mcloud/provider2/.memo-provider/state
Last updated