message: create a default genesis.json if one does not exist
diff: @@ -177,9 +177,11 @@ void chain_plugin::plugin_initialize(const variables_map& options) {
  void chain_plugin::plugin_startup()
  { try {
  - FC_ASSERT( fc::exists( my->genesis_file ),
  - "unable to find genesis file '${f}', check --genesis-json argument",
  - ("f",my->genesis_file.generic_string()) );
  + if( !fc::exists( my->genesis_file ) ) {
  + wlog( "\n generating default genesis file ${f}", ("f", my->genesis_file.generic_string() ) );
  + contracts::genesis_state_type default_genesis;
  + fc::json::save_to_file( default_genesis, my->genesis_file, true );
  + }
  my->chain_config->block_log_dir = my->block_log_dir;
  my->chain_config->shared_memory_dir = app().data_dir() / default_shared_memory_dir;
  my->chain_config->read_only = my->readonly;
  @@ -211,7 +213,7 @@ void chain_plugin::plugin_startup()
  my->chain_config.reset();
  - } FC_CAPTURE_AND_RETHROW( (my->genesis_file.generic_string()) ) }
  +} FC_CAPTURE_LOG_AND_RETHROW( (my->genesis_file.generic_string()) ) }
  void chain_plugin::plugin_shutdown() {
  my->chain.reset();
  