You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
just now found that libraries/appbase/application.cpp ignores the value supplied to —config.
bfs::path config_file_name = data_dir / "config.ini";
if( options.count( "config" ) ) {
auto config_file_name = options["config"].asbfs::path();
if( config_file_name.is_relative() )
config_file_name = data_dir / config_file_name;
}
if someone wants to supply an alternate config file, it won’t be used. Second, the —config option doesn’t behave as advertised.
not earth shattering, but I was going to use the feature in the launcher to assess whether or not —enable-stale-production was defined in a collection of staged config files.
It’s a one-word code change, but all the process of modifying the submodule. :-(
ATC
Prerequisites
A local test net with the latest code, including the latest submodule. git submodule update to be sure.
Side effects
An additional config file will be left in tn_data_00.
Procedure
Copy tn_data_00/config.ini to tn_data_00/config-port-8880.ini
Edit tn_data_00/config-port-8880.ini and change http-server-address = 127.0.0.1:8888 to http-server-address = 127.0.0.1:8880.
Run eosiod normally.
Verify the daemon can be reached by eosioc on the default port:
programs/eosioc/eosioc get info should return the usual JSON results.
Shut down eosiod
Run eosiod with command line option --config config-port-8880.ini.
Verify the daemon can not be reached by eosioc on the default port:
programs/eosioc/eosioc get info returns Failed to connect to eosd at localhost:8888; is eosd running?
Verify the daemon can be reached on port 8880:
programs/eosioc/eosioc -p 8880 get info returns the usual JSON results.
The text was updated successfully, but these errors were encountered:
From Phil:
just now found that libraries/appbase/application.cpp ignores the value supplied to —config.
bfs::path config_file_name = data_dir / "config.ini";
if( options.count( "config" ) ) {
auto config_file_name = options["config"].asbfs::path();
if( config_file_name.is_relative() )
config_file_name = data_dir / config_file_name;
}
if someone wants to supply an alternate config file, it won’t be used. Second, the —config option doesn’t behave as advertised.
not earth shattering, but I was going to use the feature in the launcher to assess whether or not —enable-stale-production was defined in a collection of staged config files.
It’s a one-word code change, but all the process of modifying the submodule. :-(
ATC
Prerequisites
git submodule update
to be sure.Side effects
tn_data_00
.Procedure
tn_data_00/config.ini
totn_data_00/config-port-8880.ini
tn_data_00/config-port-8880.ini
and changehttp-server-address = 127.0.0.1:8888
tohttp-server-address = 127.0.0.1:8880
.eosiod
normally.eosioc
on the default port:programs/eosioc/eosioc get info
should return the usual JSON results.eosiod
eosiod
with command line option--config config-port-8880.ini
.eosioc
on the default port:programs/eosioc/eosioc get info
returnsFailed to connect to eosd at localhost:8888; is eosd running?
programs/eosioc/eosioc -p 8880 get info
returns the usual JSON results.The text was updated successfully, but these errors were encountered: