BitShares Forum

Main => Technical Support => Topic started by: nixoid on January 02, 2015, 06:18:18 am

Title: how to save advanced_node_parameters
Post by: nixoid on January 02, 2015, 06:18:18 am
Hi there,

Is there a way to make node remember  advanced_node_parameters?
So this will be set automatically during each start:

network_set_advanced_node_parameters {"desired_number_of_connections":100, "maximum_number_of_connections":200}

I've set up bitshares as a daemon and cannot type this during each boot because i don't know when reboot will happen.

I've tried adding this to various places of configs - not helping.

Thanks in advance.
Title: Re: how to save advanced_node_parameters
Post by: vikram on January 06, 2015, 07:14:19 pm
I don't believe there is a way to save these at present; I've made a note about it here: https://github.com/BitShares/bitshares/issues/1206
Title: Re: how to save advanced_node_parameters
Post by: abit on January 07, 2015, 02:38:05 am
Code: [Select]
$bitshares_client --help

...

--input-log arg                       Set log file with CLI commands to
                                            execute at startup

Looks like it's possible to set some commands to excute at startup, but how to?
Title: Re: how to save advanced_node_parameters
Post by: vikram on January 07, 2015, 05:14:28 pm
Code: [Select]
$bitshares_client --help

...

--input-log arg                       Set log file with CLI commands to
                                            execute at startup

Looks like it's possible to set some commands to excute at startup, but how to?

You can give it a file with a command on each line prefixed by the console prefix ">>> ". Anything before the prefix or on a line without it is ignored. Like so:

https://github.com/BitShares/bitshares/blob/6b5febbeca5e4274a1b29f56b5e67bc093412392/tests/regression_tests/_common_logs/create_wallet.log

Title: Re: how to save advanced_node_parameters
Post by: abit on January 07, 2015, 05:42:28 pm
Code: [Select]
$bitshares_client --help

...

--input-log arg                       Set log file with CLI commands to
                                            execute at startup

Looks like it's possible to set some commands to excute at startup, but how to?

You can give it a file with a command on each line prefixed by the console prefix ">>> ". Anything before the prefix or on a line without it is ignored. Like so:

https://github.com/BitShares/bitshares/blob/6b5febbeca5e4274a1b29f56b5e67bc093412392/tests/regression_tests/_common_logs/create_wallet.log
Great. This makes a lot sense.
Thanks.