Closed lzqjfly closed 5 years ago
How did you kill nodeos? kill -9 will require a hard replay.
I start the blockchain like :
$ nodeos -e -p eosio --plugin eosio::chain_api_plugin --plugin eosio::history_api_plugin --contracts-console
I can set the out logs
looks like nodes was hard killed before, resulting in a unclear database. you need to --hard-replay or resync in this case.
--hard-replay will take too long time, eos has 23million blocks now.
As said by @heifner and @taokayan, it seems that your nodeos was killed forcefully before. Just start nodeos with --hard-replay
option
I run the contract,but i did not see any output from nodes. So i restart
nodeos
with the--contracts-console
$ nodeos --contracts-console
2018-09-21T03:42:32.620 thread-0 chain_plugin.cpp:329 plugin_initialize ] initializing chain plugin 2018-09-21T03:42:32.680 thread-0 chain_plugin.cpp:646 plugin_initialize ] 13 St13runtime_error: database dirty flag set rethrow database dirty flag set: {"what":"database dirty flag set"} thread-0 chain_plugin.cpp:646 plugin_initialize Failed to initialize