Assume you have pre-installed eos https://github.com/EOSIO/eos
Assume you have pre-installed eosio.wasmsdk https://github.com/EOSIO/eosio.wasmsdk
Assume you have pre-installed eosio.contracts https://github.com/EOSIO/eosio.contracts
nodeos
uses a custom configuration folder. The location of this folder is determined by your system.
Mac OS: ~/Library/Application\ Support/eosio/nodeos/config/
Linux: ~/.local/share/eosio/nodeos/config/
For example, on Mac:
cp ./config.ini ~/Library/Application\ Support/eosio/nodeos/config/
Then maybe you need change this two dir path in eos_init.sh
EOS_HOME=../eos
EOS_CONTRACT_HOME=../eosio.contracts
Before run it you may need to unlock eos wallet.
cleos wallet unlock
You can find the config infomation in eos config file: config.ini
.
signature-provider = EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV=KEY:5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
Just import the key:
cleos wallet import --private-key 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
Run nodeos
in your eos build folder
:
./programs/nodeos/nodeos
If you need to clear the blockchain data, just remove the eos block data folder.
For example, on Mac:
rm -rf ~/Library/Application\ Support/eosio/nodeos/data/*
Before run it you may need to unlock eos wallet.
cleos wallet unlock
Then run. Enjoy!
./run.sh