eos icon indicating copy to clipboard operation
eos copied to clipboard

Replay fails

Open okluoquan opened this issue 8 years ago • 1 comments

class hello : public eosio::contract { public: using contract::contract;

  /// @abi action 
  void hi(account_name user) {
    require_auth( user );
	print( "Hello, ", name{user} );
  }
  void ha(account_name user) {
	char ab[] = { 'a', 'b' };
	const char test[] = "test";
	prints_l(ab, 2);
	prints_l(ab, 1);
	prints_l(ab, 0);
	prints_l(test, sizeof(test)-1);
  }

};

EOSIO_ABI(hello,(hi)(ha))


cleos push action first ha '[]' -p second

error occur!

./nodeos

show:

1774138ms thread-0 block_log.cpp:128 open ] Index is nonempty 1774159ms thread-0 chain_plugin.cpp:217 plugin_startup ] 10 assert_exception: Assert Exception head_block_num() == 0: last block ID does not match current chain state {"last_block->id":"000001d5198ff5285f2459dea42b80aa8fb7d694e17d8661d3390c138695550d","head_block_num":470} thread-0 chain_controller.cpp:1683 _spinup_fork_db 1774159ms thread-0 chain_plugin.cpp:217 plugin_startup ] my->genesis_file.generic_string(): /Users/my/Library/Application Support/eosio/nodeos/config/genesis.json 1774159ms thread-0 main.cpp:95 main ] 10 assert_exception: Assert Exception head_block_num() == 0: last block ID does not match current chain state {"last_block->id":"000001d5198ff5285f2459dea42b80aa8fb7d694e17d8661d3390c138695550d","head_block_num":470} thread-0 chain_controller.cpp:1683 _spinup_fork_db rethrow {"my->genesis_file.generic_string()":"/Users/my/Library/Application Support/eosio/nodeos/config/genesis.json"} thread-0 chain_plugin.cpp:217 plugin_startup

okluoquan avatar Apr 06 '18 11:04 okluoquan

delete the folder--shared_mem to rosolve

okluoquan avatar Apr 06 '18 11:04 okluoquan