반응형
node 테스트를 위해 command로 EOS를 실행하니 Database dirty flag set 오류 발생
./nodeos -e -p eosio --plugin eosio::chain_api_plugin --plugin eosio::history_api_plugin
오류
warn 2022-03-21T06:33:22.186 nodeos chain_plugin.cpp:1321 plugin_initialize ] 13 N5boost10wrapexceptISt12system_errorEE: Database dirty flag set
rethrow Database dirty flag set:
{"what":"Database dirty flag set"}
nodeos chain_plugin.cpp:1321 plugin_initialize
해결 방법
./nodeos -e -p eosio --plugin eosio::chain_api_plugin --plugin eosio::history_api_plugin --replay-blockchain --hard-replay-blockchain
기존 nodeos 실행 옵션에 --replay-blockchain --hard-replay-blockchain 옵션 추가
이 옵션은 data/blocks 디렉토리에 nodeos있는 파일에서 재생하도록 지시. 체인 상태를 지우고 모든 블록을 재생
반응형
'Blockchain > EOS' 카테고리의 다른 글
[이오스] cleos 명령어를 통해 이오스 토큰 전송하는 방법 (0) | 2022.03.30 |
---|---|
[이오스] net_plugin::plugin_startup failed to bind to port 오류 해결 방법 (0) | 2022.03.22 |
[이오스] Linux에 EOS 개발환경 구축하기 (0) | 2022.03.21 |
[이오스] 서버에서 발생 할 수 있는 오류와 해결 방법 (0) | 2022.02.28 |