관련 유튜브  : https://youtu.be/pXmqYqQsIt0

 

sudo apt install -y apt-transport-https ca-certificates software-properties-common curl python unzip

sudo echo "hyper   ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers

curl -sSL http://bit.ly/2ysbOFE | bash -s 1.4.0

sudo apt install golang-go python libltdl-dev python-pip

sudo npm install npm@5.6.0 -g

 

### docker install

curl -sSL https://get.docker.com/ | sh

sudo usermod -aG docker john

sudo curl -L https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

 

### 의존성 라이브러리

sudo apt-get install -y build-essential libssl-dev

 

####  docker images  all clear

docker stop $(docker ps -a -q)

docker rm -f $(docker ps -a -q)

docker rmi -f $(docker images -q)

 

### docker information all remove

docker image prune -a

docker image prune

docker volume prune

docker network prune -f

smartcontract 를 실행했을때 아래와 같이 print가 출력되지 않는 경우가 있는데,

okayjava@EOS-VM1:~/eos/eosio-cli-helper$ ./cleos.sh push action eos1okayjava hi '["eos1okayjava"]' -p eos1okayjava

executed transaction: 97dda555a72b685ba530b8341c75bb6b710700f58f99b566511fade8cba06479  104 bytes  845 us

#  eos1okayjava <= eos1okayjava::hi             {"user":"eos1okayjava"}

warning: transaction executed locally, but may not be confirmed by the network yet    ] 

okayjava@EOS-VM1:~/eos/eosio-cli-helper$ 


이럴땐 아래와 같이 수정 한 후 nodeos 를 재실행 한다.


1) config.ini 수정

contracts-console=1 를 추가 해주거나,


2) nodeos 실행시 

--contracts-console 붙여서 실행을 시킨다.

jungle@EOS-VM1:~/JungleTestnet-eosrocomokr1$  ps -ef | grep nodeos

jungle    4898     1  2 04:31 pts/10   00:00:12 /home/jungle/eos-source/build/programs/nodeos/nodeos --data-dir /home/jungle/JungleTestnet-eosrocomokr1 --config-dir /home/jungle/JungleTestnet-eosrocomokr1 --contracts-console


okayjava@EOS-VM1:~/eos/eosio-cli-helper$ ./cleos.sh push action eos1okayjava hi '["eos1okayjava"]' -p eos1okayjava

executed transaction: 91154a4b084792be4051eabdd06fbca6a7a57c45a1fda91e6d721f5377458120  104 bytes  523 us

#  eos1okayjava <= eos1okayjava::hi             {"user":"eos1okayjava"}

>> Hello, World eos1okayjava

warning: transaction executed locally, but may not be confirmed by the network yet    ] 

okayjava@EOS-VM1:~/eos/eosio-cli-helper$  




+ Recent posts