Repository navigation
Master Node Installation
- OS Supported
- System Requirements
- Installation from rpm files
- Uninstall rpm
- Configure YUM
- Downloads only
- Join Mile Testnet
- Manage Node by Mile Shell
- Download and compile cli wallet
- Linux Centos 7.x
- 2 GB RAM
- 1 CPU core
- 60GB HDD
- 8 GB RAM
- 8 CPU cores
- 512GB SDD
$ rpm -ivh https://github.com/mile-core/mile-files/blob/master/mile-0.4x-46.x86_64.rpm?raw=true # install binaries
$ rpm -qi mile # check installations
$ rpm -ivh https://github.com/mile-core/mile-files/blob/master/mileshell-0.4x-1.x86_64.rpm?raw=true
$ rpm -qi mileshell
$ rpm -e mile
$ rpm -e mileshell
$ rpm -Uvh https://github.com/mile-core/mile-files/blob/master/mile-0.4x-46.x86_64.rpm?raw=true
$ rpm -Uvh https://github.com/mile-core/mile-files/blob/master/mileshell-0.4x-1.x86_64.rpm?raw=true
$ vi /etc/yum.repos.d/mile.repo
[mile]
name=Mile Unity Foundation
gpgcheck = 0
enabled=1
baseurl=https://repo.mile.global/mainnet/
$ yum install mile
$ yum install mileshell
$ wget -O mile-0.4x-46.x86_64.rpm https://github.com/mile-core/mile-files/blob/master/mile-0.4x-46.x86_64.rpm?raw=true
$ wget -O mileshell-0.4x-1.x86_64.rpm https://github.com/mile-core/mile-files/blob/master/mileshell-0.4x-1.x86_64.rpm?raw=true
$ wget -O genesis_block_testnet.txt https://github.com/mile-core/mile-files/blob/master/genesis_block_testnet.txt?raw=true
$ cp ./genesis_block_testnet.txt /etc/mile/genesis_block.txt
Note: Mainnet Genesis block is already included in rpm package above
$ systemctl start mile
$ systemctl status mile
$ systemctl stop mile
$ shell.chaos
$ shell.chaos -i your.node.address
Blockchain info
Project name : "Mile"
Version : "1"
Base assets : "10000.00000"
Supported transaction : "RegisterNodeTransactionWithAmount, UnregisterNodeTransaction, TransferAssetsTransaction, CreateTokenRateVoting, PostTokenRate, GetTokenRate, EmissionTransaction, UpdateEmission"
Supported assets : "xdr tokens, mile tokens"
[chaos@mile]>
[chaos@mile]> help
| N: | Section name: | Content: |
|----+----------------------+----------------------------------|
| 0 | settings | Settings for shell |
| 1 | node wallet | Settings for node wallet |
| 2 | local wallet | Settings for local wallet |
| 3 | blockchain | Blockchain operations |
| 4 | transaction | Binary transaction |
|----+----------------------+----------------------------------|
Type 'help <N>' or 'help <Section name>' to see commands
OK
[chaos@mile]> [chaos@mile]> exit
[chaos@mile]> create local wallet <name-of-your-node-wallet> password <strong-password-phrase>
$ scp ./wallets/<name-of-your-node-wallet>.* root@<your.node.ip.address>:/etc/mile/wallets/
$ ssh root@<your.node.ip.address>
# vi /etc/mile/mile.xml
Replace mileglobal <NodeWalletPassword>mileglobal</NodeWalletPassword> on your <strong-password-phrase>
[chaos@mile]> create local wallet from keys <name-of-your-existing-wallet> public key <public_key> private key <private_key> [password <strong-password-phrase>]
[chaos@mile]> transfer asset transaction mile from local <name-of-your-existing-wallet> to <node_wallet_public_address> amount 10000.00000 [password <strong-password-phrase>]
[chaos@mile]> emission transaction xdr node <name-of-your-node-wallet> password <strong-password-phrase>
[chaos@mile]> register node with amount transaction local wallet <name-of-your-node-wallet> address <your.node.ip.address> amount 10000.00 password <strong-password-phrase>
Where amount must be greater or equal then 10000XDR and less or equal 100000XDR.
[chaos@mile]> get local wallet state <name-of-your-node-wallet>
Wallet : "master-node000"
xdr : "<your node XDR balance>"
mile : "<your node MILE balance>"
Tags : "Node"
Node address : "<your.node.ip.address>"
Last transaction id : "xxxxx"
Is transactions exist : "yes"
Freeze mile : "0"
OK
where Tags must be "Node".
Now deposit on the wallet locked in XDR and the node has become a Master Node.
Download and compile cli wallet to manage your wallet and node wallet state supported also Ubuntu and OSX
$ ./mile_cli_wallet --help
Allowed options:
--help produce help message
--debug print debug messages
-w [ --wallet ] arg create wallet from random (-w "random")
or secret phrase
-u [ --url ] arg (=http://lotus000.testnet.mile.global/v1/api)
RPC url
-m [ --method ] arg blockchain command
-p [ --params ] arg (={}) blockchain params
-r [ --reconnections ] arg (=3) try to connect again reconnection times
if any connection error occurred
Methods:
get-blockchain-info
get-blockchain-state
get-network-state
get-nodes
get-current-block-id
get-block --params '{"id":1}'
get-wallet-state --params '{"public-key": "...bHqSm8WTuY3gB9UXD..."}'
get-wallet-transactions --params '{"public-key": "...bHqSm8WTuY3gB9UXD..."}'
send-transfer --params '{"private-key": "...bHqSm8WTuY3gB9UXD...", "to":"...pXg1MF4qxZTEsL..", "amount": "100", "asset-code":0, "description":"send my money back!"}'
send-emission --params '{"private-key": "...bHqSm8WTuY3gB9UXD...", "asset-code":0}'
register-node --params '{"private-key": "...bHqSm8WTuY3gB9UXD....", "amount": 10000.00, "address": "xxx.yyy.zzz.www"}'
unregister-node --params '{"private-key": "...bHqSm8WTuY3gB9UXD...."}'
vote-for-rate -p '{"private-key": "...bHqSm8WTuY3gB9UXD....", "amount": 1.21}'To start XDR minting on your wallet you must create .wallet file with private and public key.
$ mile_cli_wallet -o -w random > ./<name-of-your-wallet>.wallet
$ scp ./node.wallet root@<your.node.address>:/etc/mile/wallets/
The minimum deposit amount on the wallet should be at least 10.000 XDR.
To issue the XDRs you have to have some MILE coins. You can buy MILE at the open market. Also you can manage transfers with MILE Wallet. Then you should make emission of XDR (lock MILE) with amount what you intend to lock on your node. $ mile_cli_wallet -u https://lotus000.i.mile.global/v1/api -m send-emission -p '{"private-key": "the private key of your node wallet", "asset-code":10000}'
$ mile_cli_wallet -u https://lotus000.i.mile.global/v1/api -m get-wallet-state -p '{"public-key": "the public key of your node wallet"}'
Also you can check the wallet state on MILE Wallet or Mile Explorer. Transaction can be rejected by blockchain. The current version of the cli wallet does not support transaction completions, so if state of your node wallet is not changed during next 3 blocks you should repeat this operation.
$ ./mile_cli_wallet -u https://lotus000.i.mile.global/v1/api -m register-node -p '{"private-key": "the private key of your node wallet", "amount": 10000, "address":"your.node.ip.address"}'
Then you should check your node wallet state to make sure your node is still a Master Node of MILE blockchain.
$ mile_cli_wallet -u https://lotus000.i.mile.global/v1/api -m get-wallet-state -p '{"public-key": "the public key of your node wallet"}'
Response looks like this:
{"address":"your.node.ip.address","balance":[{"amount":"....","code":"0"},{"amount":".....","code":"1"}],"exist":"1","preferred-transaction-id":"981444529","tags":["Node"]}, where tags must contain "Node" world.
Safe trip!
© Mile Unity Foundation is a public benefit organisation aimed to educate the community about the new technologies and tools in global economy. While operating decentralized crypto assets, you're the only one responsible for their safety.