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.contractsBefore run it you may need to unlock eos wallet.
cleos wallet unlockYou 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 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3Run nodeos in your eos build folder:
./programs/nodeos/nodeosIf 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 unlockThen run. Enjoy!
./run.sh