목록2018/06 (5)
좋은 프로그램은 마음의 여유에서 나온다.
앞에서 만든 hello.test account에 컨트랙 배포하기 **** dawn 4.2 변경사항컨트랙 코드의 stdout을 출력하려면 config.ini에 contracts-console를 true로 변경해줘야 한다 (기본 false) $ vi ~/.local/share/eosio/nodeos/config/config.ini contracts-console = true 소스를 다운받아 빌드하면 /eos_path/build/contract/hello 디렉토리에 예제로 들어있다. hi 라는 함수에 지갑 이름을 매개변수로 입력받아서 Hello, 이름 을 출력하는 예제이다. #include #include using namespace eosio; class hello : public eosio::contrac..
EOS 튜토리얼에 있는 Hello 컨트랙 올려보기. EOS 컨트랙을 올리기 위해서는 account가 필요합니다. 한개의 account는 한개의 contract만 올릴 수 있습니다. 앞의 지갑 생성하기(http://lky1001.tistory.com/187)를 따라 하셨다면 지갑에 키를 임포트하고 account를 생성하도록 하겠습니다. 지갑은 unlock 되어있어야합니다. 아래의 명령어로 키를 생성할 수 있으나 EOSIO 1.0.5 버전부터 테스트용 키를 써야 하므로(http://lky1001.tistory.com/190) $ cleos create key Private key: AAAAAA Public key: BBBBBB 다음의 테스트키를 사용하겠습니다. eosio private key: 5KQwrPb..
EOS config.ini에 기본적으로 127.0.0.1만 허용하도록 설정되어 있음. 아래 부분을 주석처리하고 0.0.0.0 으로 바꿔준다. # http-server-address = 127.0.0.1:8888 http-server-address = 0.0.0.0:8888 $ vi ~/.local/share/eosio/nodeos/config/config.ini #http-server-address = 127.0.0.1:8888 http-server-address = 0.0.0.0:8888
EOS 1.0.2 노드 실행시 아래와 같은 오류가 날 경우 nodeos git:(master) ./nodeos -e -p eosio --plugin eosio::chain_api_plugin --plugin eosio::history_api_plugin 1875208ms thread-0 chain_plugin.cpp:151 plugin_initialize ] initializing chain plugin 1875209ms thread-0 main.cpp:113 main ] 10 assert_exception: Assert Exception version > 0: Block log was not setup properly with genesis information. {} thread-0 block_log..
eos 지갑 생성하기 $ cd /path_to_eos/build/programs/cleos $ cleos wallet create Creating wallet: default Save password to use in the future to unlock this wallet. Without password imported keys will not be retrievable. "A MASTER PASSWORD" 이제 default라는 지갑이 keosd안에 있게 되며, 지갑을 생성하면 master password가 나온다. 이 비밀번호는 지갑을 언락(decrypt)하는데 사용된다. 안전한 곳에 저장해놔야함. 지갑 파일 이름은 default.wallet로 생성되고, 기본적으로 keosd ~/eosio-wal..